【问题标题】:Jenkins Error Loading FIle from Artifacts詹金斯从工件加载文件时出错
【发布时间】:2016-03-19 17:31:11
【问题描述】:

我创建了一个构建管道,它从上游项目 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

【问题讨论】:

    标签: jenkins terraform


    【解决方案1】:

    更详细地了解您是如何进行复制的会有所帮助。我在输出中没有看到任何内容显示正在复制的内容。

    也许你想使用Clone Workspace Plugin

    【讨论】:

      【解决方案2】:

      因此,经过进一步审查,上游作业似乎确实保留了工件,但下游作业从未复制过工件。在更新构建以复制先前构建的工件后,一切都运行良好。一直到凌晨 3 点打瞌睡对这种情况没有帮助:)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-03-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-07-04
        相关资源
        最近更新 更多