[FAAS-5] jenkins build failure due to commons.faas pom Created: 07/Oct/15  Updated: 19/Oct/17  Resolved: 15/Oct/15

Status: Resolved
Project: faas
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Henry Yu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4428

 Description   

ERROR LOG:

[INFO] Deployment in http://nexus.opendaylight.org/content/repositories/opendaylight.release/ (id=opendaylight-release,uniqueVersion=true)
Deploying the main artifact commons.faas-0.1.0-SNAPSHOT.pom
Downloading: http://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/faas/commons.faas/0.1.0-SNAPSHOT/maven-metadata.xml
Uploading: http://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/faas/commons.faas/0.1.0-SNAPSHOT/commons.faas-0.1.0-20151007.151858-1.pom
ERROR: Failed to deploy artifacts: Could not transfer artifact org.opendaylight.faas:commons.faas:pom:0.1.0-20151007.151858-1 from/to opendaylight-release (http://nexus.opendaylight.org/content/repositories/opendaylight.release/): Failed to transfer file: http://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/faas/commons.faas/0.1.0-SNAPSHOT/commons.faas-0.1.0-20151007.151858-1.pom. Return code is: 400, ReasonPhrase: Bad Request.
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.opendaylight.faas:commons.faas:pom:0.1.0-20151007.151858-1 from/to opendaylight-release (http://nexus.opendaylight.org/content/repositories/opendaylight.release/): Failed to transfer file: http://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/faas/commons.faas/0.1.0-SNAPSHOT/commons.faas-0.1.0-20151007.151858-1.pom. Return code is: 400, ReasonPhrase: Bad Request.
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:143)
at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:193)
at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:176)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1046)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1784)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact



 Comments   
Comment by Thanh Ha (zxiiro) [ 07/Oct/15 ]

The reason for the failure is that the faas project build is trying to push SNAPSHOT artifacts to opendaylight.release repo which only accepts release artifacts.

It should be pushing to opendaylight.snapshot repo. Is there some artifacts in the faas build which is accidently set to be non-SNAPSHOT versions?

Comment by Thanh Ha (zxiiro) [ 07/Oct/15 ]

Found it. The property <faas.base.version>1.0.0</faas.base.version> in commons.faas is setting another artifact "base" to be a release version of 1.0.0.

Either:

1) <faas.base.version> needs to be 1.0.0-SNAPSHOT
OR
2) The "base" artifact be changed to have it's version set as <version>${faas.base.version}-SNAPSHOT</version>

I would go with option 1) because autorelease version bump script will not be able to update your version otherwise.

Comment by Henry Yu [ 07/Oct/15 ]

Thanh: Thanks a lot for the analysis. I will make the change.

Generated at Wed Feb 07 19:58:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.