How to customize Jenkins build name?

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

    [replying to Patrice M.'s comment above, just I don't have enough reputation to comment]:

    The Build Name Setter plugin can express a variety of variables, including environment variables, when used in conjunction with the Token Macro plugin. Furthermore, build parameters are also available as environment variables; so, for example, if your build has a parameter "MYPARAM", then you can simply use it (assuming you have installed the Token Macro plugin) in the build name like this:

    Built with parameter MYPARAM: ${ENV, var="MYPARAM"}
    

提交回复
热议问题