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

Enable environment variables for M2 Release Plugin

    Details

    • Similar Issues:

      Description

      Are we able to get the release version and development version into Jenkins environment variables with the M2 Release Plugin? If not, could you please add this? Seems like an easy fix?

        Attachments

          Activity

          Hide
          franky4ro Dan Albu added a comment -

          As a fix you can always use this in your M2 Release Plugin Release goals and options : -DreleaseVersions=$MVN_RELEASE_VERSION -DsnapshotVersions=$MVN_DEV_VERSION
          This way you have access to the variables in the job

          Show
          franky4ro Dan Albu added a comment - As a fix you can always use this in your M2 Release Plugin Release goals and options : -DreleaseVersions=$MVN_RELEASE_VERSION -DsnapshotVersions=$MVN_DEV_VERSION This way you have access to the variables in the job
          Hide
          jehon Jean Honlet added a comment -

          Hello

          I am also interested in this.

          I use the m2release plugin, and when launching a release, I would like to trigger a "deploy" job (separate jenkins job). To do so, I need to know:

          • if it is a release job => IS_M2RELEASEBUILD is good
          • what version we just did build => ?

          To make this work, I currently parse the full log of the console to get the version... which is not optimal

          Could you publish something like "M2RELEASEBUILD_VERSION"?

          Thanks

          Show
          jehon Jean Honlet added a comment - Hello I am also interested in this. I use the m2release plugin, and when launching a release, I would like to trigger a "deploy" job (separate jenkins job). To do so, I need to know: if it is a release job => IS_M2RELEASEBUILD is good what version we just did build => ? To make this work, I currently parse the full log of the console to get the version... which is not optimal Could you publish something like "M2RELEASEBUILD_VERSION"? Thanks
          Hide
          drekbour Marc Carter added a comment -

          I would like MVN_RELEASE_VERSION_ACTUAL for cases where Maven (or your configured release goals) decides its own versions. MVN_RELEASE_VERSION is the passed in parameter which doesn't always have to be the version used (maybe you use $BUILD_NUMBER and/or something based on git describe)

          Show
          drekbour Marc Carter added a comment - I would like MVN_RELEASE_VERSION_ACTUAL for cases where Maven (or your configured release goals) decides its own versions. MVN_RELEASE_VERSION is the passed in parameter which doesn't always have to be the version used (maybe you use $BUILD_NUMBER and/or something based on git describe )

            People

            • Assignee:
              Unassigned
              Reporter:
              ha1 Neil Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: