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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          kohsuke 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.

          Show
          kohsuke 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.
          Hide
          kohsuke 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.

          Show
          kohsuke 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: