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

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • maven-plugin
    • None

    Description

      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

      Attachments

        Activity

          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_issue_link 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
          bpainter 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 ?

          bpainter 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 ?
          bpainter Bruce Painter added a comment -

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

          bpainter 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_issue_link 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_issue_link 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

          People

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

            Dates

              Created:
              Updated:
              Resolved: