Changing Jenkins build number

前端 未结 8 743
情深已故
情深已故 2020-12-04 06:17

Is there a way to change the build number that is sent via email after a job completes? The problem is that are product builds are NOT being done by Jenkins, so we want to

相关标签:
8条回答
  • 2020-12-04 06:57

    You can change build number by updating file ${JENKINS_HOME}/jobs/job_name/nextBuildNumber on Jenkins server.

    You can also install plugin Next Build Number plugin to change build number using CLI or UI

    0 讨论(0)
  • 2020-12-04 06:58

    can be done with the plugin: https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin

    more info: http://www.alexlea.me/2010/10/howto-set-hudson-next-build-number.html

    if you don't like the plugin:

    If you want to change build number via nextBuildNumber file you should "Reload Configuration from Disk" from "Manage Jenkins" page.

    0 讨论(0)
提交回复
热议问题