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

Allow to use the post build deploy task in Maven jobs without setting deployment info

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      As the distributionManagement in POM already defines where artifacts have to be deployed, the post deploy task (which is really useful to not deploy broken artifacts) shouldn't ask where to deploy them by default and reuse info from Maven

          [JENKINS-9786] Allow to use the post build deploy task in Maven jobs without setting deployment info

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          http://jenkins-ci.org/commit/jenkins/045468259359b0243085a64ec49b3668fcc15272
          Log:
          JENKINS-9786 : Update logs

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/jenkins/045468259359b0243085a64ec49b3668fcc15272 Log: JENKINS-9786 : Update logs

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          http://jenkins-ci.org/commit/jenkins/db0dcf0d257fcc6c47d116e7958fcbd107312c93
          Log:
          Merge pull request #146 from aheritier/JENKINS-9786-1

          JENKINS-9786 : Update logs

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/jenkins/db0dcf0d257fcc6c47d116e7958fcbd107312c93 Log: Merge pull request #146 from aheritier/ JENKINS-9786 -1 JENKINS-9786 : Update logs

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties
          http://jenkins-ci.org/commit/jenkins/fe30ad88027bdc1b39fceb82a1ed6f1162a3fbdd
          Log:
          JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs to use the deploy task after the build. It's no more necessary to set/duplicate this information in the job configuration.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: changelog.html maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties http://jenkins-ci.org/commit/jenkins/fe30ad88027bdc1b39fceb82a1ed6f1162a3fbdd Log: JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs to use the deploy task after the build. It's no more necessary to set/duplicate this information in the job configuration.

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties
          http://jenkins-ci.org/commit/jenkins/1a7001b7e43b5aaacd7a7a355a5ebbaa5a10474d
          Log:
          Merge pull request #142 from aheritier/JENKINS-9786

          JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: changelog.html maven-plugin/src/main/java/hudson/maven/RedeployPublisher.java maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config.jelly maven-plugin/src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties http://jenkins-ci.org/commit/jenkins/1a7001b7e43b5aaacd7a7a355a5ebbaa5a10474d Log: Merge pull request #142 from aheritier/ JENKINS-9786 JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          http://jenkins-ci.org/commit/jenkins/045468259359b0243085a64ec49b3668fcc15272
          Log:
          JENKINS-9786 : Update logs

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/jenkins/045468259359b0243085a64ec49b3668fcc15272 Log: JENKINS-9786 : Update logs

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          http://jenkins-ci.org/commit/jenkins/db0dcf0d257fcc6c47d116e7958fcbd107312c93
          Log:
          Merge pull request #146 from aheritier/JENKINS-9786-1

          JENKINS-9786 : Update logs

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/jenkins/db0dcf0d257fcc6c47d116e7958fcbd107312c93 Log: Merge pull request #146 from aheritier/ JENKINS-9786 -1 JENKINS-9786 : Update logs

          Bruce Painter added a comment -

          I am running Jenkins 1.424.0.1 and am finding the same behavior as before. The upload works but only outputs the following in the log file

          Deploying the main artifact httpBaseParent-ee-SNAPSHOT.pom
          Deploying the main artifact httpComponents-ee-SNAPSHOT.jar

          Where I am expecting to see the full URL to the artifact in the Nexus repository.

          Do I need to increase the logging level ?

          Bruce Painter added a comment - I am running Jenkins 1.424.0.1 and am finding the same behavior as before. The upload works but only outputs the following in the log file Deploying the main artifact httpBaseParent-ee-SNAPSHOT.pom Deploying the main artifact httpComponents-ee-SNAPSHOT.jar Where I am expecting to see the full URL to the artifact in the Nexus repository. Do I need to increase the logging level ?

          Bruce Painter added a comment -

          My apologies, this wasn't the issue I was thinking it was, this should not have been re-opened

          Bruce Painter added a comment - My apologies, this wasn't the issue I was thinking it was, this should not have been re-opened

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          src/main/java/hudson/maven/RedeployPublisher.java
          src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
          src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          src/main/resources/hudson/maven/RedeployPublisher/config.jelly
          src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties
          http://jenkins-ci.org/commit/maven-plugin/5848d3f08584eccd11336e293d3ace305c9e1bd0
          Log:
          JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs to use the deploy task after the build. It's no more necessary to set/duplicate this information in the job configuration.

          Originally-Committed-As: fe30ad88027bdc1b39fceb82a1ed6f1162a3fbdd

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: src/main/java/hudson/maven/RedeployPublisher.java src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java src/main/java/hudson/maven/reporters/MavenArtifactRecord.java src/main/resources/hudson/maven/RedeployPublisher/config.jelly src/main/resources/hudson/maven/RedeployPublisher/config_fr.properties http://jenkins-ci.org/commit/maven-plugin/5848d3f08584eccd11336e293d3ace305c9e1bd0 Log: JENKINS-9786 : Jenkins can read repositories definitions from Maven POMs to use the deploy task after the build. It's no more necessary to set/duplicate this information in the job configuration. Originally-Committed-As: fe30ad88027bdc1b39fceb82a1ed6f1162a3fbdd

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          src/main/java/hudson/maven/reporters/MavenArtifactRecord.java
          http://jenkins-ci.org/commit/maven-plugin/7b1f577e97b1311780f65d38075191559a2e7f7a
          Log:
          JENKINS-9786 : Update logs
          Originally-Committed-As: 045468259359b0243085a64ec49b3668fcc15272

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: src/main/java/hudson/maven/reporters/MavenArtifactRecord.java http://jenkins-ci.org/commit/maven-plugin/7b1f577e97b1311780f65d38075191559a2e7f7a Log: JENKINS-9786 : Update logs Originally-Committed-As: 045468259359b0243085a64ec49b3668fcc15272

            aheritier Arnaud Héritier
            aheritier Arnaud Héritier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: