• 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

          Patrik Boström created issue -
          Patrik Boström made changes -
          Description Original: 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
          New: 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.
          Patrik Boström made changes -
          Component/s New: maven2 [ 15487 ]
          Component/s Original: delivery-pipeline [ 18134 ]
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          Radek Antoniuk made changes -
          Remote Link New: This issue links to "PR47 (Web Link)" [ 12953 ]
          Radek Antoniuk made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 155811 ] New: JNJira + In-Review [ 179130 ]

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

              Created:
              Updated: