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

Ability to pass the current build number to maven as a property

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      So that the POM file could expand this (e.g. ${hudson.build.number})

      This would allow the build number to be used in the manifest by the
      WAR/JAR/EAR/etc plugins.

          [JENKINS-488] Ability to pass the current build number to maven as a property

          magnayn created issue -

          See the relevant thread
          http://www.nabble.com/m2---build-number-system-property--tf3600315.html

          Variable "hudson.build.number" exposed to builds starting 1.104.

          I'll keep the issue open for the automatic baking into the jar.

          Kohsuke Kawaguchi added a comment - See the relevant thread http://www.nabble.com/m2---build-number-system-property--tf3600315.html Variable "hudson.build.number" exposed to builds starting 1.104. I'll keep the issue open for the automatic baking into the jar.
          Kohsuke Kawaguchi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Hudson now adds Hudson-Build-Number and Hudson-Project entries to the manifest
          of jar, ear, and war. This is also in 1.104.

          Kohsuke Kawaguchi added a comment - Hudson now adds Hudson-Build-Number and Hudson-Project entries to the manifest of jar, ear, and war. This is also in 1.104.
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 130561 ] New: JNJira + In-Review [ 199924 ]

            Unassigned Unassigned
            magnayn magnayn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: