简体   繁体   English

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

[英]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.

相关问题 谁能告诉我为什么这个haml代码不显示任何内容 - Can anyone tell me why this haml code does not displays anything 要在2.2.2的Rails中进行单元测试,但失败了。 谁能告诉我原因,并帮助我获得解决方案? - Want to take unit test in rails of 2.2.2, but failed. Could anyone tell me the reason and help me to get the solution? 谁能告诉我 Ruby 中的 Gemspec 文件的用途是什么? - Can anyone tell me what the purpose of a Gemspec file in Ruby is? 谁能用红宝石向我解释此代码? - Can anyone explain me this code in ruby? 谁能帮我查明为什么我得到这个Uncaught ReferenceError:Google地图未定义$错误? - Can anyone help pinpoint why I get this Uncaught ReferenceError: $ is not defined error for google maps? 有人可以解释为什么我在 localhost:3000 上收到此错误消息吗? - Can someone explain why I get this error message on localhost:3000? 为什么我从Rails的生成中收到“没有这样的文件”错误消息? - Why do I get a “no such file” error message from Rails' generate? 错误:extconf失败,退出代码1 [Ruby on Rails] - Error: extconf failed, exit code 1 [Ruby on Rails] 为什么Rails控制台会告诉我不存在任何记录,但由于存在而无法创建记录? - Why does Rails console tell me that no records exist, but I can't create a record because it exists? 谁能告诉我Rails中这两种变量分配方法之间的区别? - Can anyone tell me the different between these two variable assignment methods in Rails?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM