Details
-
Improvement
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
Description
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.
mavenJob {
publishers {
deployArtifacts {
releaseEnvVar('IS_M2RELEASEBUILD')
}
}
}
Submitted pull request, https://github.com/jenkinsci/job-dsl-plugin/pull/1036