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

It should be possible to set next build number from Command Line Interface

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The plugin next-build-number allows the override of the Next build number to a value greater than the current one from the Jenkins page, but it should also be possible to do this simple command from CLI interface.

      The CLI interface already allows to delete specific builds but not set the next build number.

      This would be very helpfull for automation cases where deploying jobs though command line interface based on templates for migration from other servers or build systems in order to provide continuation of build numbering on same components.

        Attachments

          Activity

          Hide
          josesa Jose Sa added a comment -

          Thanks. looking forward for a new plugin release with this change.

          Show
          josesa Jose Sa added a comment - Thanks. looking forward for a new plugin release with this change.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          pom-for-test.xml
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommand.java
          src/main/resources/org/jvnet/hudson/plugins/nextbuildnumber/Messages.properties
          src/test/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommandTest.java
          http://jenkins-ci.org/commit/next-build-number-plugin/f7a4655b799d8fd044b752fcfc17419c8e4570a5
          Log:
          Merge pull request #2 from olivergondza/cli-command

          [FIXED JENKINS-14406] Adding CLI for updating next build number

          Compare: https://github.com/jenkinsci/next-build-number-plugin/compare/00173954f1e1...f7a4655b799d

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: pom-for-test.xml pom.xml src/main/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommand.java src/main/resources/org/jvnet/hudson/plugins/nextbuildnumber/Messages.properties src/test/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommandTest.java http://jenkins-ci.org/commit/next-build-number-plugin/f7a4655b799d8fd044b752fcfc17419c8e4570a5 Log: Merge pull request #2 from olivergondza/cli-command [FIXED JENKINS-14406] Adding CLI for updating next build number Compare: https://github.com/jenkinsci/next-build-number-plugin/compare/00173954f1e1...f7a4655b799d
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          pom-for-test.xml
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommand.java
          src/main/resources/org/jvnet/hudson/plugins/nextbuildnumber/Messages.properties
          src/test/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommandTest.java
          http://jenkins-ci.org/commit/next-build-number-plugin/cd593d7c7a130f24914a68b6b4502fc4d0ab8738
          Log:
          [FIXED JENKINS-14406] Adding CLI for updating next build number

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: pom-for-test.xml pom.xml src/main/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommand.java src/main/resources/org/jvnet/hudson/plugins/nextbuildnumber/Messages.properties src/test/java/org/jvnet/hudson/plugins/nextbuildnumber/CLICommandTest.java http://jenkins-ci.org/commit/next-build-number-plugin/cd593d7c7a130f24914a68b6b4502fc4d0ab8738 Log: [FIXED JENKINS-14406] Adding CLI for updating next build number

            People

            Assignee:
            dty Dean Yu
            Reporter:
            josesa Jose Sa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: