Hi,

Some of our modules create a pom, jar and nbm file. We had an issue were 
Jenkins failed to deploy one of the artifacts to Artifactory.

The Jenkins job seems to have updated the xml, deployed the jar and pom but not 
deployed the nbm file due to a timeout
Then other builds failed as the maven-metadata.xml stored in Artifactory 
indicated an nbm file that doesn't exist.

I would have thought that the metadata shouldn't have been updated until all 
items were successfully deployed; what do you believe is the correct behavior 
in this situation?
The build information was not deployed as this is the last activity that occurs 
and the build failed before this, so removing the partial deployments would 
have to be a manual process as well.

Regards,

Dan

Application versions:
Artifactory Pro Power Pack 2.6.4 (rev. 13153)
Jenkins ver. 1.471<http://jenkins-ci.org/>
Jenkins Artifactory plugin 2.1.2


Log snippet from failed Deploy


[INFO] Deploying artifact: 
http://XXX/artifactory/libs-snapshot-local/com/experian/eda/Component_CTree_Help/2.2.3-SNAPSHOT/Component_CTree_Help-2.2.3-SNAPSHOT.jar

[INFO] Deploying artifact: 
http://XXX/artifactory/libs-snapshot-local/com/experian/eda/Component_CTree_Help/2.2.3-SNAPSHOT/Component_CTree_Help-2.2.3-SNAPSHOT.pom

mavenExecutionResult exceptions not empty

message : Internal error: java.lang.RuntimeException: Error occurred while 
publishing artifact to Artifactory: 
/data/hudson/jobs/Function_Set_Tree_Processing/workspace/modules/Component_CTree_Help/pom.xml.

 Skipping deployment of remaining artifacts (if any) and build info.

cause : Error occurred while publishing artifact to Artifactory: 
/data/hudson/jobs/Function_Set_Tree_Processing/workspace/modules/Component_CTree_Help/pom.xml.

 Skipping deployment of remaining artifacts (if any) and build info.

Stack trace :

org.apache.maven.InternalErrorException: Internal error: 
java.lang.RuntimeException: Error occurred while publishing artifact to 
Artifactory: 
/data/hudson/jobs/Function_Set_Tree_Processing/workspace/modules/Component_CTree_Help/pom.xml.

 Skipping deployment of remaining artifacts (if any) and build info.

         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)

         at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

         at java.lang.reflect.Method.invoke(Method.java:597)

         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcherjava:329)

         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)

         at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)

         at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)

         at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)

         at hudson.remoting.UserRequest.perform(UserRequest.java:118)

         at hudson.remoting.UserRequest.perform(UserRequest.java:48)

         at hudson.remoting.Request$2.run(Request.java:287)

         at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)

         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

         at java.util.concurrent.FutureTask.run(FutureTask.java:138)

         at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutorjava:886)

         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

         at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.RuntimeException: Error occurred while publishing artifact 
to Artifactory: 
/data/hudson/jobs/Function_Set_Tree_Processing/workspace/modules/Component_CTree_Help/pom.xml.

 Skipping deployment of remaining artifacts (if any) and build info.

         at 
org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:134)

         at 
org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78)

         at 
org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128)

         at 
org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)

         at 
org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)

         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)

         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

         ... 19 more

Caused by: java.net.SocketTimeoutException: Read timed out

         at java.net.SocketInputStream.socketRead0(Native Method)

         at java.net.SocketInputStream.read(SocketInputStream.java:129)

         at 
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)

         at 
org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:111)

         at 
org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)

         at 
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)

         at 
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParserjava:252)

         at 
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:282)

         at 
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)

         at 
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:216)

         at 
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:298)

         at 
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)

         at 
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647)

         at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)

         at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClientjava:820)

         at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClientjava:754)

         at 
org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:95)

         at 
org.jfrog.build.client.ArtifactoryHttpClient.execute(ArtifactoryHttpClient.java:193)

         at 
org.jfrog.build.client.ArtifactoryHttpClient.upload(ArtifactoryHttpClientjava:189)

         at 
org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:512)

         at 
org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292)

         at 
org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:132)

         ... 26 more

channel stopped







Failure in the other job indicating it's trying to find a nbm files that's not 
been deployed

[ERROR] Failed to execute goal 
org.codehaus.mojo:nbm-maven-plugin:3.6:cluster-app (default-cluster-app) on 
project idapApplication: Failed to retrieve the nbm file from repository: Could 
not find artifact 
com.experian.eda:Component_CTree_Help:nbm:2.2.3-20130211.200106-254 in 
artifactory (http://XXXX/artifactory/public)








Information in this e-mail and any attachments is confidential, and may not be 
copied or used by anyone other than the addressee, nor disclosed to any third 
party without our permission. There is no intention to create any legally 
binding contract or other binding commitment through the use of this electronic 
communication unless it is issued in accordance with the Experian Limited 
standard terms and conditions of purchase or other express written agreement 
between Experian Limited and the recipient. Although Experian has taken 
reasonable steps to ensure that this communication and any attachments are free 
from computer virus, you are advised to take your own steps to ensure that they 
are actually virus free. 

Companies Act information: Registered name: Experian Limited. Registered 
office: Landmark House, Experian Way, NG2 Business Park, Nottingham, NG80 1ZZ, 
United Kingdom. Place of registration: England and Wales. Registered number: 
653331

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to