add releaseEnvVar property to DeployArtifactsContext

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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: