• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • artifactory-plugin
    • None
    • jenkins: 2.40
      artifactory plugin: 2.90
      slave jvm: 1.7

      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
      

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

          aflat added a comment -

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

          aflat added a comment - tested with the snapshot, looks like that all worked, thanks again.

          aflat added a comment -

          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
          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

          aflat added a comment - 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 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

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

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

          aflat added a comment -

          I have

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

          aflat added a comment - I have 2.9.1-SNAPSHOT (private-01/24/2017 10:44-jenkins)

          Roman Gurevitch added a comment - - edited

          We 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?

          Roman Gurevitch added a comment - - edited We 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?

          aflat added a comment -

          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.

          aflat added a comment - 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.

          Andrew Martin added a comment -

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

          Andrew Martin added a comment - I also had this problem and upgrading the Maven Integration Plugin from 2.12.1 to 2.14 resolved it.

          Mark R added a comment -

          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

          Mark R added a comment - 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

          Dave Taddei added a comment -

          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

          Dave Taddei added a comment - 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

          Dave Taddei added a comment -

          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"
          }
          ]
          }'''

          Dave Taddei added a comment - 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" } ] }'''

            eyalbe Eyal Ben Moshe
            aflat aflat
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: