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

Avoid post-build depoy to Maven repository in release build

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • m2release-plugin
    • None

      The Jenkins post-build feature "deploy to Maven repository" in conjunction with a release build with m2release plugin leads to corrupt snapshot version in Maven snapshot repository:
      After the release build succeeds the post-build deploy deploys the new development version pom-file as old development version to our maven snapshot repository.
      If possible the m2release plugin should disable the post-build deploy feature in its release build.

          [JENKINS-12397] Avoid post-build depoy to Maven repository in release build

          We would like also have this issue solved. The m2release plugin has now support to export envrionment variable, that may be used.

          Jakub Štiller added a comment - We would like also have this issue solved. The m2release plugin has now support to export envrionment variable, that may be used.

          Jakub Štiller added a comment - Pull request: https://github.com/jenkinsci/jenkins/pull/380

          Code changed in jenkins
          User: Jakub Štiller
          Path:
          maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html
          http://jenkins-ci.org/commit/jenkins/51a53ab491bc4efe1309655f0ba7df2050246409
          Log:
          JENKINS-12397: Skip deploying of artifacts when release build is running.

          Monitor environment variable defined by user. If the variable is set to "true" the deployment is skipped. The M2 Release plugin expose this kind of variables.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jakub Štiller Path: maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html http://jenkins-ci.org/commit/jenkins/51a53ab491bc4efe1309655f0ba7df2050246409 Log: JENKINS-12397 : Skip deploying of artifacts when release build is running. Monitor environment variable defined by user. If the variable is set to "true" the deployment is skipped. The M2 Release plugin expose this kind of variables.

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html
          http://jenkins-ci.org/commit/jenkins/30c229f2245ff850909b318d0a18e348d32102ab
          Log:
          Merge pull request #380 from Delorien84/JENKINS-12397

          JENKINS-12397: Skip deploying of artifacts when release build is running...
          good idea Thanks !

          Compare: https://github.com/jenkinsci/jenkins/compare/4866198...30c229f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html http://jenkins-ci.org/commit/jenkins/30c229f2245ff850909b318d0a18e348d32102ab Log: Merge pull request #380 from Delorien84/ JENKINS-12397 JENKINS-12397 : Skip deploying of artifacts when release build is running... good idea Thanks ! Compare: https://github.com/jenkinsci/jenkins/compare/4866198...30c229f

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/8cce8dd0ba4be23e39f32d7267564275895d8a79
          Log:
          changelog entry for JENKINS-12397

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: changelog.html http://jenkins-ci.org/commit/jenkins/8cce8dd0ba4be23e39f32d7267564275895d8a79 Log: changelog entry for JENKINS-12397

          will be in core 1.453

          Dominik Bartholdi added a comment - will be in core 1.453

          Code changed in jenkins
          User: Jakub Štiller
          Path:
          src/main/java/hudson/maven/RedeployPublisher.java
          src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html
          http://jenkins-ci.org/commit/maven-plugin/3ba0833d1ad78c4f94bdfcc982ef38e3e43f9a04
          Log:
          JENKINS-12397: Skip deploying of artifacts when release build is running.

          Monitor environment variable defined by user. If the variable is set to "true" the deployment is skipped. The M2 Release plugin expose this kind of variables.

          Originally-Committed-As: 51a53ab491bc4efe1309655f0ba7df2050246409

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jakub Štiller Path: src/main/java/hudson/maven/RedeployPublisher.java src/main/resources/hudson/maven/RedeployPublisher/config.jelly src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html http://jenkins-ci.org/commit/maven-plugin/3ba0833d1ad78c4f94bdfcc982ef38e3e43f9a04 Log: JENKINS-12397 : Skip deploying of artifacts when release build is running. Monitor environment variable defined by user. If the variable is set to "true" the deployment is skipped. The M2 Release plugin expose this kind of variables. Originally-Committed-As: 51a53ab491bc4efe1309655f0ba7df2050246409

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          src/main/java/hudson/maven/RedeployPublisher.java
          src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html
          http://jenkins-ci.org/commit/maven-plugin/889d04233a95f910956a3ba2d80b0cccf34d3460
          Log:
          Merge pull request #380 from Delorien84/JENKINS-12397

          JENKINS-12397: Skip deploying of artifacts when release build is running...
          good idea Thanks !
          Originally-Committed-As: 30c229f2245ff850909b318d0a18e348d32102ab

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/hudson/maven/RedeployPublisher.java src/main/resources/hudson/maven/RedeployPublisher/config.jelly src/main/resources/hudson/maven/RedeployPublisher/help-releaseEnvVar.html http://jenkins-ci.org/commit/maven-plugin/889d04233a95f910956a3ba2d80b0cccf34d3460 Log: Merge pull request #380 from Delorien84/ JENKINS-12397 JENKINS-12397 : Skip deploying of artifacts when release build is running... good idea Thanks ! Originally-Committed-As: 30c229f2245ff850909b318d0a18e348d32102ab

            Unassigned Unassigned
            dyrssen Kai Dyrssen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: