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

          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.

          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.

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

              Created:
              Updated:
              Resolved: