使用Artifactory Jenkins插件时出错

时间:2016-08-02 05:52:46

标签: jenkins jenkins-plugins artifactory

我正在尝试使用Artifactory plugin将我的Jenkins生成的工件部署到Artifactory中。但是,我收到以下错误:

For pattern: my_path/artifact_name.tar.gz 1 artifacts were found
Deploying artifact: http://server_name:8081/artifactory/build_artifacts/artifact_name.tar.gz
ERROR: remote file operation failed: /workspace/in/slave/node at hudson.remoting.Channel@56f0631:slave_node: java.io.IOException: Remote call on slave_node failed
java.io.IOException: remote file operation failed: /workspace/in/slave/node at hudson.remoting.Channel@56f0631:slave_node: java.io.IOException: Remote call on slave_node failed
    at hudson.FilePath.act(FilePath.java:987)
    at hudson.FilePath.act(FilePath.java:969)
    at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:81)
    at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:346)
    at hudson.model.Build$BuildExecution.doRun(Build.java:173)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.IOException: Remote call on slave_node failed
    at hudson.remoting.Channel.call(Channel.java:786)
    at hudson.FilePath.act(FilePath.java:980)
    ... 9 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.net.InetAddress
    at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
    at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:89)
    at org.jfrog.build.client.ArtifactoryHttpClient.getVersion(ArtifactoryHttpClient.java:136)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.getArtifactoryVersion(ArtifactoryBuildInfoClient.java:702)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.tryChecksumDeploy(ArtifactoryBuildInfoClient.java:591)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:559)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:282)
    at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.deploy(GenericArtifactsDeployer.java:206)
    at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:178)
    at org.jfrog.hudson.generic.GenericArtifactsDeployer$FilesDeployerCallable.invoke(GenericArtifactsDeployer.java:122)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2691)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    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)
    at ......remote call to ffuas4eng01(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
    at hudson.remoting.Channel.call(Channel.java:778)
    ... 10 more

Artifactory上的存储库名为build_artifacts。我确保了Artifactory的Jenkins用户(admin)具有部署权限。 http url也未提供有关生成的工件的任何信息。我的设置出了什么问题?

另一条重要的信息是我的Jenkins配置 - 我有一个主节点和一个从节点。构建工件在从属节点上生成。

单击部署工件链接时,我在显示屏上显示以下内容:

{
  "errors" : [ {
    "status" : 404,
    "message" : "File not found."
  } ]
}

0 个答案:

没有答案