我创建了一个构建管道,它从上游项目 A 中获取工件并将其复制到下游项目 B 中。我的系统已存档所有构建工件,但出于某种原因,Jenkins 没有将这些文件加载到它正在运行构建的目录中. 当我尝试运行我的 shell 命令时,我不断收到以下错误消息。我在 vagrant 上运行 Jenkins,所以我不确定这是否有任何关系,但很好奇是否有人遇到过这个问题。
Building in workspace /var/lib/jenkins/jobs/tf-deploy/workspace
Promoting tf-deploy #43
[workspace] $ /bin/sh -xe /tmp/hudson7656233371468187886.sh
+ terraform show -module-depth=-1 tfplan
[31mError loading file: open tfplan: no such file or directory[0m[0m
failed build hudson.tasks.Shell@1310c10d SUCCESS
Warning: this build has no associated authentication, so build permissions may be lacking, and downstream projects which cannot even be seen by an anonymous user will be silently skipped
Finished: FAILURE