[英]Jenkins multi-branch pipeling stuck on an old Jenkinsfile
I am practicing a CI workflow using cowsay as an app with a local git repository.我正在使用 cowsay 作为具有本地 git 存储库的应用程序来练习 CI 工作流程。 I have a docker-compose that builds three docker containers: a Jenkins, a gitLab and an Artifactory.
我有一个 docker-compose,它构建了三个 docker 容器:一个 Jenkins、一个 Z37F6651DB68B605B074594D51ZDC。 all three use a named volume to store consistent data.
这三个都使用命名卷来存储一致的数据。 I am running a multi-branch pipeline based on a Jenkinsfile (declarative) and a webhook for push events.
我正在运行基于 Jenkinsfile(声明性)和用于推送事件的 webhook 的多分支管道。 So far so good.
到目前为止,一切都很好。 BUT - Jenkins is STUCK on an old version of Jenkinsfile.
但是 - Jenkins 卡在旧版本的 Jenkinsfile 上。 Solutions I tried:
我尝试过的解决方案:
Jenknis refuses to re-cache and in some bizzare way keeps running this line: "docker build -t cowsay/master." Jenknis 拒绝重新缓存并以某种奇怪的方式继续运行此行:“docker build -t cowsay/master”。 which is non-existant in the Jenkinsfile.
这在 Jenkinsfile 中不存在。
I can't find any more caches to clean other than.我找不到更多要清理的缓存。 Help?
帮助?
EDIT: I am not running any commands.编辑:我没有运行任何命令。 This is configured so the Jenkins job runs upon a 'git push' to any branch.
这是这样配置的,因此 Jenkins 作业在“git push”到任何分支时运行。 The error I am seeing is this line: +docker build -t 'cowsay'.
我看到的错误是这一行:+docker build -t 'cowsay'。 It's a line that used to be in the Jenkinsfile in one of the stages, but isn't for at least the last 5 commits/pushes.
这是曾经在某个阶段的 Jenkinsfile 中的一行,但至少在最后 5 次提交/推送中不是。 This line causes an error that fails the job.
此行会导致作业失败的错误。
I have never experienced this failure myself but here a couple of things I would try to debug what's wrong:我自己从未经历过这种失败,但这里有几件事我会尝试调试问题所在:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.