티스토리 뷰

공부

[jenkins] git_branch remove origin

승가비 2022. 2. 15. 21:58
728x90

https://stackoverflow.com/questions/20541609/how-to-receive-local-git-branch-name-with-jenkins-git-plugin

 

How to receive local Git branch name with Jenkins Git plugin?

I am using Branch Specifier option of Jenkins Git plugin (v2.0) to run build on specific branch, e.g. 1.4. ${GIT_BRANCH} in this case contains origin/1.4 value. How can I receive a name of the lo...

stackoverflow.com

${GIT_BRANCH##origin/}
728x90
댓글