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

Script to interoperate with maven-release-plugin

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Minor Minor
    • incrementals-tools
    • None

      If you have opted into Incrementals, is it still possible to run maven-release-plugin or does it get too confused?

          [JENKINS-50693] Script to interoperate with maven-release-plugin

          Jesse Glick added a comment -

          It gets somewhat confused. As seen here, the right version is actually released, but the “next development iteration” is not configured correctly and would require manual cleanup before again being ready for publishing to Incrementals.

          Jesse Glick added a comment - It gets somewhat confused. As seen here , the right version is actually released, but the “next development iteration” is not configured correctly and would require manual cleanup before again being ready for publishing to Incrementals.

          Jesse Glick added a comment -

          If interoperability with MRP is necessary, which it surely will be for Jenkins core at least, then perhaps we need to have a tool to fix up the POM after a release as in JENKINS-50699 and require that to be run.

          Jesse Glick added a comment - If interoperability with MRP is necessary, which it surely will be for Jenkins core at least, then perhaps we need to have a tool to fix up the POM after a release as in JENKINS-50699 and require that to be run.

          Jesse Glick added a comment -

          Experimented further with a multimodule test repository using profiles and other setup matching what is proposed for Incrementals. Again after using MRP, POMs are reset to using literal versions, so subsequent mvn clean deploy -Dset.changelist commands simply deploy timestamped snapshots to the regular snapshot repository, until you reincrementalify the repo like this.

          Jesse Glick added a comment - Experimented further with a multimodule test repository using profiles and other setup matching what is proposed for Incrementals. Again after using MRP, POMs are reset to using literal versions, so subsequent mvn clean deploy -Dset.changelist commands simply deploy timestamped snapshots to the regular snapshot repository, until you reincrementalify the repo like this .

          Jesse Glick added a comment -

          Another option for a plugin developer is of course to manually git tag and mvn deploy -Dchangelist= releases, though this is more cumbersome and error-prone than using MRP.

          Jesse Glick added a comment - Another option for a plugin developer is of course to manually git tag  and mvn deploy -Dchangelist= releases, though this is more cumbersome and error-prone than using MRP.

          Jesse Glick added a comment -
          mvn help:evaluate -Dexpression=project.version -Doutput=version && mvn versions:set -Ddollar='$' -DnewVersion='${dollar}{revision}${dollar}{changelist}' -DgenerateBackupPoms=false && mvn versions:set-property -Dproperty=revision -DnewVersion=`sed -e 's/-SNAPSHOT$//' < version` -DgenerateBackupPoms=false && rm version
          

          Jesse Glick added a comment - mvn help:evaluate -Dexpression=project.version -Doutput=version && mvn versions:set -Ddollar='$' -DnewVersion='${dollar}{revision}${dollar}{changelist}' -DgenerateBackupPoms=false && mvn versions:set-property -Dproperty=revision -DnewVersion=`sed -e 's/-SNAPSHOT$//' < version` -DgenerateBackupPoms=false && rm version

          Jesse Glick added a comment -

          Formally documented this script. Can promote it to a saved file somewhere later, TBD.

          Jesse Glick added a comment - Formally documented this script. Can promote it to a saved file somewhere later, TBD.

          Jesse Glick added a comment -

          Will need to have a repository of related scripts anyway, so may as well do this one.

          Jesse Glick added a comment - Will need to have a repository of related scripts anyway, so may as well do this one.

          Jesse Glick added a comment -

          Better yet, convert to a mojo.

          Jesse Glick added a comment - Better yet, convert to a mojo.

          Jesse Glick added a comment -

          mvn incrementals:reincrementalify

          Jesse Glick added a comment - mvn incrementals:reincrementalify

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: