Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Git Plugin Repository Url Variable

Tags:

git

jenkins

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.

like image 372
e82.eric Avatar asked Jul 23 '13 21:07

e82.eric


1 Answers

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
like image 132
Gonen Avatar answered Oct 21 '22 23:10

Gonen