-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
Powered by SuggestiMate
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
From KK point of view it should be changed in the constructor to ensure to change only new builds
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.
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
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.
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
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
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 ?
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
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
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)