哈德森:将工件从主服务器复制到从属服务器失败 [英] Hudson: Copy artifact from master to slave fails

查看:85
本文介绍了哈德森:将工件从主服务器复制到从属服务器失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用复制工件"插件将工件从在主服务器上运行的作业复制到在从属节点上运行的下游作业?

Is it possible to use the 'copy artifact' plugin to copy an artifact from a job that ran on master to a downstream job that runs on a slave node?

我在从站上看到一条错误消息: hudson.util.IOException2:hudson.util.IOException2:无法提取/srv/hudson/jobs/myproject/builds/2011-04-29_10-28-54/archive/myartifact.foo

I'm getting an error on the slave that says: hudson.util.IOException2: hudson.util.IOException2: Failed to extract /srv/hudson/jobs/myproject/builds/2011-04-29_10-28-54/archive/myartifact.foo

很明显,该路径无效,因为它指向master上的工件文件夹.

Obviously that path is not valid, as it points to the artifact folder on master.

我错过了什么吗?或者这是不可能的吗?

Am I missing something or is this just not possible?

推荐答案

是的,有可能.您可以使用复制工件插件将任何工件复制到奴隶.

Yes, it is possible. You can use the Copy Artifact Plugin to copy any artifact to the slave.

对于第一次测试,我建议

For a first test I recommend to

  • 仅使用一个从另一个项目复制工件"步骤设置工作
  • 使用工件将项目名称"设置为作业
  • 将哪个版本"设置为最后一次成功构建"(确保有一个版本)
  • 保留要复制的工件"和目标目录"为空,以将所有工件复制到从属工作空间目录中

这篇关于哈德森:将工件从主服务器复制到从属服务器失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆