首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >有人能告诉我为什么我从GitLab收到‘错误:作业失败:退出代码1’消息吗?

问有人能告诉我为什么我从GitLab收到‘错误:作业失败:退出代码1’消息吗?
EN

Stack Overflow用户
提问于 2020-03-26 18:21:56
回答 1查看 1.1K关注 0票数 0

每次我推到GitLab上,即使是在一个没有任何变化的全新应用程序上,我都会收到以下邮件:

代码语言:javascript
复制
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

...

有一些关于码头问题的帖子,但我不经营码头。这种情况发生在全新的rails new appname文件推送上。我已经联系过GitLab了,他们从来没有回复过。另外,这封电子邮件说我正在运行RubyVersion2.7.0,但事实并非如此。我运行2.6.5。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-27 09:03:10

电子邮件说我正在运行RubyVersion2.7.0,但事实并非如此。我运行2.6.5。

日志清楚地显示作业执行器使用Ruby2.7

代码语言:javascript
复制
$ ruby -v

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

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60873777

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档