• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None

      For Maven builds an environment variable POM_VERSION is present set to the version of the pom. This is useful to create a PIPELINE_VERSION from.
      But usually this is set to a SNAPSHOT version and in a pipeline SNAPSHOTS should not be used. So introduce a token macro which lookup the POM_VERSION and optionally remove the -SNAPSHOT part. Then it is possible to create PIPELINE_VERSION with $POM_VERSION.$BUILD_NUMBER.
      If the pom version is changed you dont need to change any configuration in Jenkins.

          [JENKINS-23249] TokenMacro for POM_VERSION

          Is this really an issue that belongs to the delivery-pipeline plugin? Is it not more about the maven-plugin?

          Kohsuke Kawaguchi added a comment - Is this really an issue that belongs to the delivery-pipeline plugin? Is it not more about the maven-plugin ?

          Changing component

          Patrik Boström added a comment - Changing component

          Create PR with a proposed implementation:
          https://github.com/jenkinsci/maven-plugin/pull/25

          Patrik Boström added a comment - Create PR with a proposed implementation: https://github.com/jenkinsci/maven-plugin/pull/25

          Radek Antoniuk added a comment - - edited

          LGTM, this would be really useful connected with Delivery Pipeline plugin.
          jglick I can see you are very active in this plugin, could you take a look at PR #47?

          Radek Antoniuk added a comment - - edited LGTM, this would be really useful connected with Delivery Pipeline plugin. jglick I can see you are very active in this plugin, could you take a look at PR #47?

          Jesse Glick added a comment -

          Assignee should be the PR author.

          I do not really have time to review miscellaneous PRs in this plugin, which I consider a bad design from the start. I help fix serious bugs when requested by customers of my employer.

          Jesse Glick added a comment - Assignee should be the PR author. I do not really have time to review miscellaneous PRs in this plugin, which I consider a bad design from the start. I help fix serious bugs when requested by customers of my employer.

          This is now part of delivery-pipeline plugin available as ENV_VERSION variable (not yet released, on master branch).
          Patrick, do you think we can close it in favor of this being available there? This PR would not cover freestyle jobs..

          Radek Antoniuk added a comment - This is now part of delivery-pipeline plugin available as ENV_VERSION variable (not yet released, on master branch). Patrick, do you think we can close it in favor of this being available there? This PR would not cover freestyle jobs..

            Unassigned Unassigned
            patbos Patrik Boström
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: