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

          Arnaud Héritier created issue -

          Note to myself : By default the deployment task doesn't deploy timestamped snapshots which is against maven best practices (and disallowed in Maven 3)
          It should be changed but it will create a problem of compatibility upgrade if the setting isn't stored by the current version (need to be studied)

          Arnaud Héritier added a comment - Note to myself : By default the deployment task doesn't deploy timestamped snapshots which is against maven best practices (and disallowed in Maven 3) It should be changed but it will create a problem of compatibility upgrade if the setting isn't stored by the current version (need to be studied)

          From KK point of view it should be changed in the constructor to ensure to change only new builds

          Arnaud Héritier added a comment - From KK point of view it should be changed in the constructor to ensure to change only new builds
          Arnaud Héritier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Applied by ndeloof in 1.415-SNAPSHOT

          Arnaud Héritier added a comment - Applied by ndeloof in 1.415-SNAPSHOT
          Arnaud Héritier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Arnaud Héritier added a comment - - edited

          If you use this feature, do it carefully as if you deploy to a repository using the default http wagon, this one has a memory leak (http://jira.codehaus.org/browse/WAGON-272), and thus if you deploy large artifacts using this feature you'll use a lot of memory in your jenkins server. You are encouraged to use another wagon to deploy large artifacts like the webdav-wagon and we are working to find a solution on jenkins side by deploying artifacts from a forked process (See JENKINS-9805)

          Arnaud Héritier added a comment - - edited If you use this feature, do it carefully as if you deploy to a repository using the default http wagon, this one has a memory leak ( http://jira.codehaus.org/browse/WAGON-272 ), and thus if you deploy large artifacts using this feature you'll use a lot of memory in your jenkins server. You are encouraged to use another wagon to deploy large artifacts like the webdav-wagon and we are working to find a solution on jenkins side by deploying artifacts from a forked process (See JENKINS-9805 )

          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

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

              Created:
              Updated:
              Resolved: