[JIRA] (JENKINS-41277) can't upload artifacts to artifactory

6 views
Skip to first unread message

gstock.public@gmail.com (JIRA)

unread,
Jan 21, 2017, 12:34:03 PM1/21/17
to jenkinsc...@googlegroups.com
aflat created an issue
 
Jenkins / Bug JENKINS-41277
can't upload artifacts to artifactory
Issue Type: Bug Bug
Assignee: Eyal Ben Moshe
Components: artifactory-plugin
Created: 2017/Jan/21 5:33 PM
Environment: jenkins: 2.40
artifactory plugin: 2.90
slave jvm: 1.7
Priority: Blocker Blocker
Reporter: aflat

This used to work with artifactory-plugin 2.81

def artiServer = Artifactory.server('snowball-artifactory')
    def repoDir = "rpms-thirdparty-local/centos/6.6/gs-test-arti-upload/${buildNumber}"

    def uploadSpec = """{
      "files": [
        {
          "pattern": "(configur*)",
          "target": "${repoDir}/{1}",
          "props": "${artiProps};build.name=${JOB_NAME};build.number=${BUILD_NUMBER}"
        }

     ]
    }"""
    def uploadBuildInfo = artiServer.upload spec: uploadSpec

Now it fails with

java.io.IOException: remote file operation failed: /opt/jenkins/workspace/gs-test-arti-upload/some at hudson.remoting.Channel@175e9603:linux_x86: java.io.IOException: Remote call on linux_x86 failed
	at hudson.FilePath.act(FilePath.java:992)
	at hudson.FilePath.act(FilePath.java:974)
	at org.jfrog.hudson.pipeline.executors.GenericUploadExecutor.execution(GenericUploadExecutor.java:52)
	at org.jfrog.hudson.pipeline.steps.UploadStep$Execution.run(UploadStep.java:65)
	at org.jfrog.hudson.pipeline.steps.UploadStep$Execution.run(UploadStep.java:46)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
	at hudson.security.ACL.impersonate(ACL.java:260)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Remote call on linux_x86 failed
	at hudson.remoting.Channel.call(Channel.java:830)
	at hudson.FilePath.act(FilePath.java:985)
	... 12 more
Caused by: java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse;
	at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:89)
	at org.jfrog.build.client.ArtifactoryHttpClient.execute(ArtifactoryHttpClient.java:203)
	at org.jfrog.build.client.ArtifactoryHttpClient.upload(ArtifactoryHttpClient.java:199)
	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:566)
	at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:275)
	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:217)
	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:189)
	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:130)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
	at hudson.remoting.Request$2.run(Request.java:336)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
	at ......remote call to linux_x86(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1537)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
	at hudson.remoting.Channel.call(Channel.java:822)
	... 13 more
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

eyalb@jfrog.com (JIRA)

unread,
Jan 21, 2017, 12:48:01 PM1/21/17
to jenkinsc...@googlegroups.com
Eyal Ben Moshe commented on Bug JENKINS-41277
 
Re: can't upload artifacts to artifactory

Thanks for reporting this.
2.9.0 did have its http client upgradrd. We're looking into this.

romang@jfrog.com (JIRA)

unread,
Jan 24, 2017, 3:34:03 AM1/24/17
to jenkinsc...@googlegroups.com

A fix for this issue will be available in our next release. In the mean time you are welcome to use the following snapshot version:
https://repo.jenkins-ci.org/jenkinsci/snapshots/org/jenkins-ci/plugins/artifactory/2.9.1-SNAPSHOT/artifactory-2.9.1-20170123.161926-1.hpi

romang@jfrog.com (JIRA)

unread,
Jan 24, 2017, 5:57:05 AM1/24/17
to jenkinsc...@googlegroups.com
Roman Gurevitch edited a comment on Bug JENKINS-41277
A fix for this issue will be available in our next release. In the mean time you are welcome to use the following snapshot version:
[https://repo.jenkins-ci.org/ jenkinsci/ snapshots/org/jenkins-ci/plugins/artifactory/2.9.1-SNAPSHOT/artifactory-2.9.1- 20170123 SNAPSHOT . 161926-1. hpi]

gstock.public@gmail.com (JIRA)

unread,
Jan 24, 2017, 11:43:04 AM1/24/17
to jenkinsc...@googlegroups.com
aflat commented on Bug JENKINS-41277

tested with the snapshot, looks like that all worked, thanks again.

gstock.public@gmail.com (JIRA)

unread,
Jan 24, 2017, 11:48:08 AM1/24/17
to jenkinsc...@googlegroups.com
aflat commented on Bug JENKINS-41277

woops, spoke too soon, still doesn't work

java.io.IOException: remote file operation failed: /opt/jenkins/workspace/gs-test-arti-upload/some at hudson.remoting.Channel@2d166852:linux_x86: java.io.IOException: Remote call on linux_x86 failed

romang@jfrog.com (JIRA)

unread,
Jan 24, 2017, 11:55:04 AM1/24/17
to jenkinsc...@googlegroups.com

Could you make sure that you downloaded the latest snapshot?
file name: artifactory-2.9.1-20170124.104426-3.hpi

gstock.public@gmail.com (JIRA)

unread,
Jan 24, 2017, 11:56:01 AM1/24/17
to jenkinsc...@googlegroups.com
aflat commented on Bug JENKINS-41277

I have

2.9.1-SNAPSHOT (private-01/24/2017 10:44-jenkins)

romang@jfrog.com (JIRA)

unread,
Jan 25, 2017, 6:29:06 AM1/25/17
to jenkinsc...@googlegroups.com

We have tried your Jenkins version and also older version of Jenkins and we suspect that one of the plugins creates this conflict.
Could you send us your installed plugins and their versions?

romang@jfrog.com (JIRA)

unread,
Jan 25, 2017, 6:30:03 AM1/25/17
to jenkinsc...@googlegroups.com
Roman Gurevitch edited a comment on Bug JENKINS-41277
We have tried to reproduce the issue with your Jenkins version and also older version of Jenkins and we suspect that one of the plugins creates this conflict.

Could you send us your installed plugins and their versions?

gstock.public@gmail.com (JIRA)

unread,
Jan 25, 2017, 7:32:01 AM1/25/17
to jenkinsc...@googlegroups.com
aflat commented on Bug JENKINS-41277

That did it. I had an older version of the maven intgration plugin, 2.12.1, which had httpclient-4.2.5.jar. I also had the aws plugin, which has httpclient-4.3.jar. I removed aws, and upgraded maven and it worked. Not sure which one caused the issue, but updating and removing fixed it.

ahmartin@mail.usf.edu (JIRA)

unread,
Jan 27, 2017, 4:35:01 PM1/27/17
to jenkinsc...@googlegroups.com

I also had this problem and upgrading the Maven Integration Plugin from 2.12.1 to 2.14 resolved it.

mrichar2@paychex.com (JIRA)

unread,
Feb 13, 2017, 2:45:01 PM2/13/17
to jenkinsc...@googlegroups.com
Mark R commented on Bug JENKINS-41277

The documentation needs to be updated to indicate that 2.9+ requires version 2.13+ of the maven-plugin. https://issues.jenkins-ci.org/browse/JENKINS-41990

david.taddei@seebyte.com (JIRA)

unread,
Feb 14, 2017, 9:26:03 AM2/14/17
to jenkinsc...@googlegroups.com

I don't see this error using pipeline, instead the config is just ignored. My json config is as follows:

def downloadSpec = """{
"files": [
{
"pattern": "SomeRepo/$

{Environment}

/bundle/$

{Version}

/collected_packages/*",
"target": "sourcepackages/",
"flat": "true"
}
]
}"""

Environment and Version are supplied as parameters to the job.

Jenkins version: 2.44
Maven Integration: 2.14
Artifactory plugin: 2.9.1

david.taddei@seebyte.com (JIRA)

unread,
Feb 14, 2017, 10:05:02 AM2/14/17
to jenkinsc...@googlegroups.com

I found that changing the outer quotes from doubles to singles allows this to work again:

def downloadSpec = '''{
"files": [
{
"pattern": "SomeRepo/$

{Environment}

/bundle/$

{Version}

/collected_packages/*",
"target": "sourcepackages/",
"flat": "true"
}
]

}'''

Reply all
Reply to author
Forward
0 new messages