Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Possible bug writing to artifactory? #4585

drdt ·

I have a situation trying to use the Artifactory plugin in version 14. I have replicated my test environment so I can run tests on both 13.0.49 and 14.0.13. When using the step type "Publish > Artifactory Artifacts" on v14.0.13, I get the error 401 shown below. Running the same step (identical code, settings, destination, permissions, everything) on v13.0.49 works fine, and the artifact is successfully created.

I can identify no differences between the two configurations that would account for the error. I tried turning on TRACE logging on both servers, but alas, no additional logging appears. I can only deduce that it is a bug in v14.

What additional information would be helpful to diagnose the issue?

12:54:11,872 INFO  - Checking step execute condition...
12:54:11,872 INFO  - Step execute condition satisfied, executing...
12:54:11,999 INFO  - Executing pre-execute action...
12:54:11,999 INFO  - Running step...
12:54:12,174 INFO  - Executing post-execute action...
12:54:12,175 ERROR - Step 'master>path>to>publish built artifacts to artifactory' is failed.
    java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: 
      https://artifactory.server:443/artifactory/nuget-local/project/name/dev/2.4.0-SNAPSHOT-5747/winamd64/Project.Name.2.4.0-SNAPSHOT-5747.nupkg
       at com.pmease.quickbuild.plugin.artifactory.ArtifactDeployStep.run(ArtifactDeployStep.java:238)
        at com.pmease.quickbuild.plugin.artifactory.ArtifactDeployStep$$EnhancerByCGLIB$$a9b10a35.CGLIB$run$10(<generated>)
        at com.pmease.quickbuild.plugin.artifactory.ArtifactDeployStep$$EnhancerByCGLIB$$a9b10a35$$FastClassByCGLIB$$6a2bd54d.invoke(<generated>)
        at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:267)
        at com.pmease.quickbuild.plugin.artifactory.ArtifactDeployStep$$EnhancerByCGLIB$$a9b10a35.run(<generated>)
        at com.pmease.quickbuild.stepsupport.Step.doExecute(Step.java:680)
        at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:577)
        at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:31)
        at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:56)
        at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:77)
        at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:131)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
    Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: 
      https://artifactory.server:443/artifactory/nuget-local/project/name/dev/2.4.0-SNAPSHOT-5747/winamd64/Project.Name.2.4.0-SNAPSHOT-5747.nupkg
       at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1998)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
        at com.pmease.quickbuild.plugin.artifactory.ArtifactDeployStep.run(ArtifactDeployStep.java:214)
        ... 16 more
  • replies 1
  • views 396
  • stars 0
robinshen ADMIN ·