Jenkins Git Plugin Repository Url变量 [英] Jenkins Git Plugin Repository Url Variable

查看:342
本文介绍了Jenkins Git Plugin Repository Url变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ j
$ b

  https:// $ { GIT_USER}@github.com/e82eric/Prompts.git 

当我尝试时,它看起来像 $ {GIT_USER} 被传递,而不是替换。

解决方案

a href =https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin =nofollow> Jenkins Git-Plugin页面,这应该是现在工作(2015年2月)。



已解决的问题包括:
$ b $ ul

  • JENKINS-14276 - Git SCM-polling没有在使用参数化分支名称时工作

  • JENKINS-20427 - 分支名称中的构建参数变量会导致轮询检测GIT中的虚假更改 em>

  • JENKINS-23675 ​​
  • 当存储库URL具有作业参数和任何存储库凭证时,git插件无法正常工作 //issues.jenkins-ci.org/browse/JENKINS-24786rel =nofollow> JENKINS-24786 - 自2.2.6开始,环境变量不会扩展in git publisher

    Is it possible to use a variable in the repository url for the jenkins git plugin?

    https://${GIT_USER}@github.com/e82eric/Prompts.git
    

    When I try it looks like ${GIT_USER} is passed instead of the substitution.

    解决方案

    According to the Jenkins Git-Plugin page, this should be working by now (Feb-2015).

    Among the issues that were resolved:

    • JENKINS-14276 - Git SCM-polling doesn't work when using a parametrized branch-name
    • JENKINS-20427 - Build Parameter variable in branch name causes polling to detect false changes in GIT
    • JENKINS-23675 - The git plugin is not working correctly when the repository url has job parameter and any repository credentials
    • JENKINS-24786 - Since 2.2.6, environment variables are not expanded in git publisher

    这篇关于Jenkins Git Plugin Repository Url变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆