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

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')
        }
       }
      }

            kylecronin Kyle Cronin
            kylecronin Kyle Cronin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: