【发布时间】:2020-07-07 11:17:51
【问题描述】:
每次我推送到 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-on-rails gitlab