How to customize Jenkins build name?

前端 未结 6 848
生来不讨喜
生来不讨喜 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:57

    Sounds like the Build Name Setter plugin.

    But if you're using Pipeline, you can do something like this:

    currentBuild.description = "#${BUILD_NUMBER}, branch ${BRANCH}"
    

提交回复
热议问题