• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Jenkins 2.289.1
      Openjdk version "1.8.0_275"
      PRETTY_NAME="Debian GNU/Linux 10 (buster)"
      NAME="Debian GNU/Linux"
      Artifactory Plugin 3.11.4
      Jfrog Commercial license 7.15.3

      Pipeline declarative

      Upgrading to Artifactory plugin version 3.11.4 makes upload to Artifactory faulty:

      [Pipeline] End of Pipeline
      java.lang.Exception: Error occurred during operation, please refer to logs for more information.
      	at org.jfrog.build.extractor.producerConsumer.ProducerConsumerExecutor.start(ProducerConsumerExecutor.java:85)
      	at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.uploadArtifactsBySpec(SpecsHelper.java:110)
      	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:157)
      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from *************************************:48656
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      		at hudson.remoting.Channel.call(Channel.java:1001)
      		at hudson.FilePath.act(FilePath.java:1159)
      		at hudson.FilePath.act(FilePath.java:1148)
      		at org.jfrog.hudson.pipeline.common.executors.GenericUploadExecutor.execute(GenericUploadExecutor.java:56)
      		at org.jfrog.hudson.pipeline.scripted.steps.UploadStep$Execution.runStep(UploadStep.java:66)
      		at org.jfrog.hudson.pipeline.scripted.steps.UploadStep$Execution.runStep(UploadStep.java:53)
      		at org.jfrog.hudson.pipeline.ArtifactorySynchronousNonBlockingStepExecution.run(ArtifactorySynchronousNonBlockingStepExecution.java:54)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      		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:1149)
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      Caused: java.lang.RuntimeException: Failed uploading artifacts by spec
      	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:159)
      	at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:108)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3317)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:376)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:119)
      	at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE
      

      Downgrading to our previous Artifactory plugin version 3.10.5 fixes the problem.

       

          [JENKINS-66424] Upload to Artifactory is broken

          Hi kgiloo , thanks for reporting this. Are you trying to upload artifacts to repo.jenkins-ci.org? If yes, Jfrog who kindly maintain repo.jenkins-ci.org is currently doing a maintenance

          Olivier Vernin added a comment - Hi kgiloo , thanks for reporting this. Are you trying to upload artifacts to repo.jenkins-ci.org? If yes, Jfrog who kindly maintain repo.jenkins-ci.org is currently doing a maintenance

          kgiloo added a comment -

          Hi olblak , the target is our local (company-wise)  jfrog artifactory

          kgiloo added a comment - Hi olblak , the target is our local (company-wise)  jfrog artifactory

          kgiloo added a comment -

          Hi olblak,

          Any news on that one, were you able at least to reproduce the issue?

           

          kgiloo added a comment - Hi olblak , Any news on that one, were you able at least to reproduce the issue?  

          paul hendley added a comment - - edited

          I ran into this exact same issue where i was able to perform artifactory downloads using the jenkins artifactory plugin but the jenkins artifactory plugin upload did NOTHING.  (CLI using curl let me do a curl upload - just the plugin would not let me).  It looked like the plugin was not even trying to do anything.  no feedback or anything.

          downgrading from jenkins-artifacotry plugin v13.x back down to 3.10.5 worked.  (note: 3.12.x and even 3.10.6 were  not working for me either).  (Thank you KGLIOO for the downgrade comment specifying 3.10.5 - that worked!)

           

          *UPDATE*

          I was able to do both push and pull from artifactory with my jenkins artifactory plugin if using a Jenkins Freestyle project.

          It currently looks like the Jenkins Multi Configuration project may still be a problem.  (looking into further but the important thing to note is that the type of project you are running may affect this too)

          Note on my versions:

          Windows 10

          Jenkins 2.289.3

          Artifactory:  we run with a commercial license for in-house artifactory server.

          Jenkins Plugins:  very recent upgrades to latest versions of most plugins this week.

          java:  1.8.0_261

          paul hendley added a comment - - edited I ran into this exact same issue where i was able to perform artifactory downloads using the jenkins artifactory plugin but the jenkins artifactory plugin upload did NOTHING.  (CLI using curl let me do a curl upload - just the plugin would not let me).  It looked like the plugin was not even trying to do anything.  no feedback or anything. downgrading from jenkins-artifacotry plugin v13.x back down to 3.10.5 worked.  (note: 3.12.x and even 3.10.6 were  not working for me either).  (Thank you KGLIOO for the downgrade comment specifying 3.10.5 - that worked!)   * UPDATE * I was able to do both push and pull from artifactory with my jenkins artifactory plugin if using a Jenkins Freestyle project. It currently looks like the Jenkins Multi Configuration project may still be a problem.  (looking into further but the important thing to note is that the type of project you are running may affect this too) Note on my versions: Windows 10 Jenkins 2.289.3 Artifactory:  we run with a commercial license for in-house artifactory server. Jenkins Plugins:  very recent upgrades to latest versions of most plugins this week. java:  1.8.0_261

          Sonia added a comment -

          We have exactly the same issue with plugin 4.0.0

          which fail to upload to artifactory. We tried all the plugins release from 3.17 until 4.0.0 and it does not work.

          do you need any stack trace or others information?

          Sonia added a comment - We have exactly the same issue with plugin 4.0.0 which fail to upload to artifactory. We tried all the plugins release from 3.17 until 4.0.0 and it does not work. do you need any stack trace or others information?

          nebojsa added a comment -

          Got the same using artifactory plugin version 4.0.8 + jenkins 2.426.3.

          I used pattern:

                                      {  "target": "${ARTIFACTORY_DIR}" ,
                                         "pattern" : "foo/bar/*.gz",
                                         "flat" : true
                                      }

          This workaround fixed it:

                                      {  "target": "${ARTIFACTORY_DIR}" ,
                                         "pattern" : "foo/bar/${ARTIFACT_NAME}.gz",
                                         "flat" : true
                                      }

          It seem bad handling of '*' when searching directory.

           

           

          nebojsa added a comment - Got the same using artifactory plugin version 4.0.8 + jenkins 2.426.3. I used pattern:                             {  "target": "${ARTIFACTORY_DIR}" ,                                "pattern" : "foo/bar/*.gz",                                "flat" : true                             } This workaround fixed it:                             {  "target": "${ARTIFACTORY_DIR}" ,                                "pattern" : "foo/bar/${ARTIFACT_NAME}.gz",                                "flat" : true                             } It seem bad handling of '*' when searching directory.    

            Unassigned Unassigned
            kgiloo kgiloo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: