Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30127

Job DSL syntax should allow nextBuildNumber to be set at create/update time

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Currently the Jenkins Next Build Number plugin permits one to set the value for the next $BUILD_NUMBER through user interaction (it is an action). For Job DSL users, the natural place to set job configuration details would be through the DSL.

      Proposing extending the DSL as follows:

      DSL Example
      freeStyleJob(String name) {
        name(String name)
        nextBuildNumber(int nextBuildNumber)  // This is new
        // etc...
      }
      

      Values lower than the currently pending build number will be ignored. Values less than 1 will raise a DSL validation error.

            daspilker Daniel Spilker
            akom Alexander Komarov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: