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

expose environment variable to indicate release

    Details

    • Similar Issues:

      Description

      it would be great if the plugin could expose an environment variable, similar to the m2-plugin, to indicate a release is being performed.

      using IS_M2RELEASEBUILD as would be a good choice as it is default used by the m2-plugin and would allow users to switch between the two in jenkins w/o the need to make pom and/or configuration changes.

        Attachments

          Activity

          Hide
          shillner Stanley Hillner added a comment -

          Hi, good point. I thought about the ability to provide several env variables to the build but I'm not quite sure whether this made sense.
          I mean it could be possible to specify names and values of multiple variables instead of this one variable only. This way you could also configure the IS_M2RELEASEBUILD variable.

          Pros/Cons?

          Show
          shillner Stanley Hillner added a comment - Hi, good point. I thought about the ability to provide several env variables to the build but I'm not quite sure whether this made sense. I mean it could be possible to specify names and values of multiple variables instead of this one variable only. This way you could also configure the IS_M2RELEASEBUILD variable. Pros/Cons?
          Hide
          jgangemi Jae Gangemi added a comment -

          i have only ever had the need to export a single env var to indicate a release build but that doesn't mean others may not. i unfortunately can't switch over to using the plugin full time w/o this, so i'm all for whatever gets me the ability to at least specify one env var the fastest.

          Show
          jgangemi Jae Gangemi added a comment - i have only ever had the need to export a single env var to indicate a release build but that doesn't mean others may not. i unfortunately can't switch over to using the plugin full time w/o this, so i'm all for whatever gets me the ability to at least specify one env var the fastest.
          Hide
          shillner Stanley Hillner added a comment -

          Question is if the env variable should be available to both the unleash maven run and the actual release build started by the unleash plugin or only the latter one.
          What are you using this variable for?

          Show
          shillner Stanley Hillner added a comment - Question is if the env variable should be available to both the unleash maven run and the actual release build started by the unleash plugin or only the latter one. What are you using this variable for?
          Hide
          jgangemi Jae Gangemi added a comment -

          i use the env var to explicitly enable a maven profile that does some extra things, so i need it to be set in the build environment. i believe this should just require an implementation of EnvironmentContributingAction and the corresponding jelly bits that go along with it.

          i would love to just contribute this back as a PR myself but i'm not sure i can find the time right now. of course, if you tell me it will be 2 months before you can get to this b/c you have other things on your plate, i'll try and find the time.

          Show
          jgangemi Jae Gangemi added a comment - i use the env var to explicitly enable a maven profile that does some extra things, so i need it to be set in the build environment. i believe this should just require an implementation of EnvironmentContributingAction and the corresponding jelly bits that go along with it. i would love to just contribute this back as a PR myself but i'm not sure i can find the time right now. of course, if you tell me it will be 2 months before you can get to this b/c you have other things on your plate, i'll try and find the time.

            People

            • Assignee:
              shillner Stanley Hillner
              Reporter:
              jgangemi Jae Gangemi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: