[英]Can anyone tell me why I get this 'ERROR: Job failed: exit code 1' message from GitLab?
Every time I push to GitLab, even on a brand new app that has no changes to it I get the following email:每次我推送到 GitLab 时,即使是在没有更改的全新应用程序上,我也会收到以下电子邮件:
Subject:
appname | Pipeline #xxxxxx has failed for master | xxxxxx
Content:
----------
Primary key fingerprint:
GPG signature looks good
Extracting to ~/.yarn...
Adding to $PATH... We've added the following to your /root/.bashrc
If this isn't the profile of your current shell then please add the following to your correct profile:
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
$ export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
$ node -v
v10.15.2
$ yarn -v
1.22.4
$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision xxxxxxxx) [x86_64-linux]
$ which ruby
/usr/local/bin/ruby
$ gem install bundler --no-document
Successfully installed bundler-2.1.4
1 gem installed
$ bundle install --jobs $(nproc) "${FLAGS[@]}" --path /cache
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path '/cache'`, and stop using this flag
Your Ruby version is 2.7.0, but your Gemfile specified ~> 2.6.5
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
...
There are some posts about Docker problems but I'm not running Docker.有一些关于 Docker 问题的帖子,但我没有运行 Docker。 This happens on a brand new
rails new appname
file push.这发生在全新的
rails new appname
文件推送上。 I've contacted GitLab about it and they have never responded.我已经就此事联系过 GitLab,但他们从未回应。 Also, this email says I am running Ruby version 2.7.0, which is NOT the case.
此外,这封电子邮件说我正在运行 Ruby 版本 2.7.0,但事实并非如此。 I run 2.6.5.
我运行 2.6.5。
email says I am running Ruby version 2.7.0, which is NOT the case.
电子邮件说我正在运行 Ruby 版本 2.7.0,但事实并非如此。 I run 2.6.5.
我运行 2.6.5。
Logs clearly show that job executor uses Ruby 2.7日志清楚地显示作业执行程序使用 Ruby 2.7
$ ruby -v
ruby 2.7.0p0 (2019-12-25 revision xxxxxxxx) [x86_64-linux]
From what you posted we can only see [DEPRECATED] The `--path` flag ...
and different Ruby version.从您发布的内容中,我们只能看到
[DEPRECATED] The `--path` flag ...
以及不同的 Ruby 版本。
I'd suggest investigating full logs on GitLab pipelines page (mails can contain truncated content).我建议调查 GitLab 管道页面上的完整日志(邮件可以包含截断的内容)。 Also if this is your custom runner you could connect to it and execute commands step by step to see what command ends with error.
此外,如果这是您的自定义运行程序,您可以连接到它并逐步执行命令以查看哪些命令以错误结尾。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.