Answer the question
In order to leave comments, you need to log in
How to substitute a task in Jenkins having a GIT branch as a variable?
Good afternoon!
How to set Git branch name as variable in Jenkins Job?
Those. now the config contains the following line:
Branch Specifier (blank for 'any')refs/heads/${GIT_BRANCH}
In this case origin/master
, , but only master
.
You can't directly write the branch name because there are multiple branches.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question