H
H
HoHsi2016-03-25 11:10:56
Java
HoHsi, 2016-03-25 11:10:56

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 question

Ask a Question

731 491 924 answers to any question