add releaseEnvVar property to DeployArtifactsContext

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The RedeployPublisher defines the property "releseEnvVar" which is used to skip the publisher if the environment variable referenced is "true", for example when set by Maven Release plugin.

      https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/RedeployPublisher.java

       

      mavenJob {
       publishers {
        deployArtifacts {
         releaseEnvVar('IS_M2RELEASEBUILD')
        }
       }
      }

            Assignee:
            Kyle Cronin
            Reporter:
            Kyle Cronin
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: