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

programmatically set build number

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:
      Show 5 results

      Description

      in my case, it would be interesting to have a build number not incremental.
      for example, it could be set to the repository revision number, or a number
      computed based on the date.

        Attachments

          Issue Links

            Activity

            Hide
            dgreen dgreen added a comment -

            watch this issue

            Show
            dgreen dgreen added a comment - watch this issue
            Hide
            huybrechts huybrechts added a comment -

            I've just committed some functionality to the description-setter plugin that may
            help. You can use the description-setter to set the description of a build.
            Later you can retrieve a build by using this url:
            /job/<jobName>/by-description/<description>. In your case the description would
            be the SVN revision.

            Show
            huybrechts huybrechts added a comment - I've just committed some functionality to the description-setter plugin that may help. You can use the description-setter to set the description of a build. Later you can retrieve a build by using this url: /job/<jobName>/by-description/<description>. In your case the description would be the SVN revision.
            Hide
            dgreen dgreen added a comment -

            great! I can't wait to try it out.

            Show
            dgreen dgreen added a comment - great! I can't wait to try it out.
            Hide
            jlongman jlongman added a comment -

            I'd like to be able to share the build number between jobs.

            With a universal increasing build number we can stop including internal build
            details to customers and make it simple, but still track whether something comes
            from an developer, an incremental, a nightly, or an official.

            This still maintains the properties that koshuke used to justify removing the
            programmatic settings.

            Show
            jlongman jlongman added a comment - I'd like to be able to share the build number between jobs. With a universal increasing build number we can stop including internal build details to customers and make it simple, but still track whether something comes from an developer, an incremental, a nightly, or an official. This still maintains the properties that koshuke used to justify removing the programmatic settings.
            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            In 1.390, the display name of a build is modifiable.
            Committed in ad27bab4e74178aa86a973acb20d6c0747aad894

            Show
            kohsuke Kohsuke Kawaguchi added a comment - In 1.390, the display name of a build is modifiable. Committed in ad27bab4e74178aa86a973acb20d6c0747aad894

              People

              • Assignee:
                al_xipe al_xipe
                Reporter:
                al_xipe al_xipe
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: