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

add releaseEnvVar property to DeployArtifactsContext

    Details

    • Similar Issues:

      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.

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

       

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

        Attachments

          Activity

          Hide
          kylecronin Kyle Cronin added a comment -
          Show
          kylecronin Kyle Cronin added a comment - Submitted pull request,  https://github.com/jenkinsci/job-dsl-plugin/pull/1036
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kyle Cronin
          Path:
          docs/Home.md
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/DeployArtifactsContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/1c74f8e4e98d203343971bcc8bf268cfcf213c43
          Log:
          JENKINS-44357 - add releaseEnvVar property to DeployArtifactsContext

          Add support for the optional releaseEnvVar property in the maven plugin
          RedeployPublisher.

          This property controls if the publisher should be skipped when the
          environment variable value is ‘true’.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kyle Cronin Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/DeployArtifactsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/1c74f8e4e98d203343971bcc8bf268cfcf213c43 Log: JENKINS-44357 - add releaseEnvVar property to DeployArtifactsContext Add support for the optional releaseEnvVar property in the maven plugin RedeployPublisher. This property controls if the publisher should be skipped when the environment variable value is ‘true’.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          docs/Home.md
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/DeployArtifactsContext.groovy
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/e9549abe51c5f02c5446b07b01a24df1c56db48d
          Log:
          Merge pull request #1036 from cronik/JENKINS-44357

          JENKINS-44357 - add releaseEnvVar property to DeployArtifactsContext

          Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/405a95c70974...e9549abe51c5

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/DeployArtifactsContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/publisher/MavenPublisherContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/e9549abe51c5f02c5446b07b01a24df1c56db48d Log: Merge pull request #1036 from cronik/ JENKINS-44357 JENKINS-44357 - add releaseEnvVar property to DeployArtifactsContext Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/405a95c70974...e9549abe51c5

            People

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

              Dates

              • Created:
                Updated:
                Resolved: