Build failure - Jenkins v1.436

30 views
Skip to first unread message

r00tuser

unread,
Nov 1, 2011, 7:30:30 AM11/1/11
to Jenkins Users
Hey Guys,

I recently upgraded Jenkins from v1.414 to v1.436. Since then many of
our builds started failing showing following error message in
console.

====
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Oct 31 16:18:21 CDT 2011
[INFO] Final Memory: 21M/505M
[INFO]
------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
channel stopped
Archiving artifacts
Maven RedeployPublished use remote maven settings from : /.m2/
settings.xml
[INFO] Deployment in http://some_maven_URL (id=,uniqueVersion=false)
Deploying the main artifact JARFILE-SNAPSHOT.jar
ERROR: Error deploying artifact: Failed to transfer file:
http://some_maven_URL/JARFILE-SNAPSHOT.jar. Return code is: 401,
ReasonPhrase:Unauthorized.
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Failed to transfer file: http://some_maven_URL/JARFILE-SNAPSHOT.jar.
Return code is: 401, ReasonPhrase:Unauthorized.
at
hudson.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:
175)
at
hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:
182)
at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:158)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild
$AbstractRunner.perform(AbstractBuild.java:694)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669)
at hudson.maven.MavenModuleSetBuild
$RunnerImpl.post2(MavenModuleSetBuild.java:978)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:
616)
at hudson.model.Run.run(Run.java:1429)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:470)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:230)
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
transfer file:
Return code is: 401, ReasonPhrase:Unauthorized.
at
org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:
581)
at
org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:
476)
at
org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:
543)
at
org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(DefaultWagonManager.java:
494)
at
hudson.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:
160)
... 11 more
[INFO] Deployment failed after 0.42 sec
Build step 'Deploy artifacts to Maven repository' changed build result
to FAILURE

==

The m2 settings.xml has username and password tags with appropiate
entries. We did not experience this issue before.
Did some research and found that upgrading maven can fix this issue.
I'm not sure about this solution, currently
we're using maven 2.0.9.

Any pointers?


Thanks in advance!

Regards,
Ram


r00tuser

unread,
Nov 2, 2011, 9:48:31 AM11/2/11
to Jenkins Users
Any idea?
Reply all
Reply to author
Forward
0 new messages