繁体   English   中英

谁能告诉我为什么我从 GitLab 收到此“错误:作业失败:退出代码 1”消息?

[英]Can anyone tell me why I get this 'ERROR: Job failed: exit code 1' message from GitLab?

每次我推送到 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

...

有一些关于 Docker 问题的帖子,但我没有运行 Docker。 这发生在全新的rails new appname文件推送上。 我已经就此事联系过 GitLab,但他们从未回应。 此外,这封电子邮件说我正在运行 Ruby 版本 2.7.0,但事实并非如此。 我运行 2.6.5。

电子邮件说我正在运行 Ruby 版本 2.7.0,但事实并非如此。 我运行 2.6.5。

日志清楚地显示作业执行程序使用 Ruby 2.7

$ ruby -v

ruby 2.7.0p0 (2019-12-25 revision xxxxxxxx) [x86_64-linux]

从您发布的内容中,我们只能看到[DEPRECATED] The `--path` flag ...以及不同的 Ruby 版本。

我建议调查 GitLab 管道页面上的完整日志(邮件可以包含截断的内容)。 此外,如果这是您的自定义运行程序,您可以连接到它并逐步执行命令以查看哪些命令以错误结尾。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM