我已经安装了copyArtifacts插件,并创建了两个自由风格的作业:experiment-main
和 experiment-1
experiment-1
仅会创建名为artifact.txt
的文件,并将构建编号写入其中,此后进行归档。
experiment-main
触发 experiment-1
然后尝试按照下面的方法复制artifacts:
但是这是执行后得到的结果:
Running as SYSTEM
Building on master in workspace /var/lib/jenkins/workspace/experiment-main
Waiting for the completion of experiment-1
experiment-1 #4 started.
experiment-1 #4 completed. Result was SUCCESS
Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
ERROR: Unable to find a build for artifact copy from: experiment-1
Finished: FAILURE
这不是我期望的结果(或者说至少不是我所希望的)。
我希望它能够找到当前构建之后的 experiment-1
构建。
有什么想法吗?