Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45515

Artifactory plugin 2.12.* Generic-Artifactory Integration configuration won't work if an authenticating proxy is set in jenkins

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Jenkins 2.60.1
      Artifactory Plugin 2.12.0 and 2.12.1

      When using the Generic-Artifactory Integration the plugin returns the following stacktrace when downloading files:

       

      java.io.IOException: remote file operation failed: C:\jenkins\workspace: java.io.IOException: Failed to search artifact by the aql 'items.find({"repo": "XXXXX","$or": [{"$and": [{"path": {"$match":"."},"name":{"$match":"XXXXX*"}}]}]})': HTTP/1.1 407 Proxy Authentication Required
      at hudson.FilePath.act(FilePath.java:993)
      at hudson.FilePath.act(FilePath.java:975)
      at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.setUp(ArtifactoryGenericConfigurator.java:355)
      at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
      at hudson.model.Run.execute(Run.java:1735)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Caused by: java.io.IOException: Failed to search artifact by the aql 'items.find({"repo": “XXXX”,”$or": [{"$and": [{"path": {"$match":"."},"name":{"$match”:”XXXXX*”}}]}]})’: HTTP/1.1 407 Proxy Authentication Required
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.readResponse(ArtifactoryDependenciesClient.java:161)
      at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.searchArtifactsByAql(ArtifactoryDependenciesClient.java:114)
      at org.jfrog.build.extractor.clientConfiguration.util.AqlDependenciesHelper.collectArtifactsToDownload(AqlDependenciesHelper.java:62)
      at org.jfrog.build.extractor.clientConfiguration.util.WildcardsDependenciesHelper.retrievePublishedDependencies(WildcardsDependenciesHelper.java:86)
      at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:83)
      at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:100)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:47)
      at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:20)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2739)
      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(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      at ......remote call to build_slave(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      at hudson.remoting.Channel.call(Channel.java:830)
      at hudson.FilePath.act(FilePath.java:986)
      ... 8 more
       
       
      

       

      We do have the correct ignore list set in the jenkins proxy configuration as well. Reverting back to version 2.11.0 of the plugin fixes this issue. 

          [JENKINS-45515] Artifactory plugin 2.12.* Generic-Artifactory Integration configuration won't work if an authenticating proxy is set in jenkins

          pixman20 added a comment - - edited

          I'm also running into a similar same issue and after trying several things had to revert back to 2.11.0 as well.  I have bypass proxy checked, but the proxy is still getting used.  In my case, the Jenkins agent has no connectivity to the proxy.  It can only connect to Artifactory, so it gets a timeout unless it bypasses the proxy.

          pixman20 added a comment - - edited I'm also running into a similar same issue and after trying several things had to revert back to 2.11.0 as well.  I have bypass proxy checked, but the proxy is still getting used.  In my case, the Jenkins agent has no connectivity to the proxy.  It can only connect to Artifactory, so it gets a timeout unless it bypasses the proxy.

            eyalbe Eyal Ben Moshe
            dstruct J D
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: