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

Enable environment variables for M2 Release Plugin

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • m2release-plugin
    • None

      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?

          [JENKINS-22339] Enable environment variables for M2 Release Plugin

          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

          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

          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

          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

          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)

          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 )

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

              Created:
              Updated: