简体   繁体   中英

Jenkins build number to be replaced with Tag or Commit ID

Is there a plugin which replaces Jenkins build number with the Tag the commit points to or in the absence of a tag the commit ID. I know this can be scripted and then using Build Name Setter Plugin i can modify the name (it does not work if my build fails) but is there any other nice plugin to perform the above function?

I wouldn't recommend to change the build number with revision. Easiest way is to set a description .

Then it's a matter of:

  1. Add build step in the build section of the job
  2. Select "Add build description"
  3. Add your Tag to the description
  4. Description will be shown right next to the build number

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM