How to customize Jenkins build name?

前端 未结 6 862
生来不讨喜
生来不讨喜 2021-02-05 01:13

When I run a job in Jenkins, each build is given a name that shows in the UI in Build History that\'s basically the current date and time.

I\'d like to be able to put in

6条回答
  •  故里飘歌
    2021-02-05 01:59

    To modify the default display Name use currentBuild.displayName = "#${BUILD_NUMBER}, branch ${BRANCH}"

提交回复
热议问题