github - What's a simple way to add the git branch in jenkins "changes" screen? -
we're using jenkins git plugin (github remote), , in "branches build" specify "**", builds branch changed.
however, "changes" screen displays git commits sha1 , commit message. there simple way add branch name text? or better, jenkins build id?
might related how receive local git branch name jenkins git plugin?, not sure how use info...
the answer using build name setter plugin.
- install build name setter plugin. check here if don't know how install jenkins plugin.
- in job config page, scroll down build environment section, set build name
#${build_number}_${git_branch}
Comments
Post a Comment