2017-02-16 44 views
0

嘗試從Slave代理上傳工件到Artifactory,但得到以下異常。IOException從Jenkins Slave上傳到Artifactory

Jenkins Artifactory Plugin version: 2.9.1 
For pattern: Installer-(*).exe 1 artifacts were found. 
Deploying artifact: https://*********/artifactory/****/0.0.0.0.zip 
ERROR: remote file operation failed: d:\j\workspace\Test at [email protected]:JNLP4-connect connection from 2.38.60.62/2.38.60.62:59447: java.io.IOException: Failed to deploy file. Status code: 502 
java.io.IOException: remote file operation failed: d:\j\workspace\Test at [email protected]:JNLP4-connect connection from 2.38.60.62/2.38.60.62:59447: java.io.IOException: Failed to deploy file. Status code: 502 
    at hudson.FilePath.act(FilePath.java:992) 
    at hudson.FilePath.act(FilePath.java:974) 
    at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:76) 
    at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:392) 
    at hudson.model.Build$BuildExecution.doRun(Build.java:174) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 
    at hudson.model.Run.execute(Run.java:1728) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
    at hudson.model.ResourceController.execute(ResourceController.java:98) 
    at hudson.model.Executor.run(Executor.java:405) 
Caused by: java.io.IOException: Failed to deploy file. Status code: 502 
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:565) 
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:278) 
    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(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
     at hudson.remoting.Engine$1$1.run(Engine.java:94) 
    at java.lang.Thread.run(Unknown Source) 
    at ......remote call to JNLP4-connect connection from 2.38.60.62/2.38.60.62:59447(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) 
    at hudson.FilePath.act(FilePath.java:985) 
    ... 9 more 
[BFA] Scanning build for known causes... 
[BFA] No failure causes found 
[BFA] Done. 0s 
Finished: FAILURE` 

我已關閉Agent-> Master Access Control,打開防火牆中的所有端口,但仍然收到相同的錯誤。

謝謝。

回答

0

好的,這是我做的。 我再次將作業配置爲從主服務器上傳,失敗。但是,它爲我提供了正確的例外。原因是我使用的用戶帳戶沒有對該回購的寫權限。

一旦我添加了所需的權限,我就能夠從奴隸上傳。