【问题标题】:I push my project to gitlab to test git ci,but it built fail我将我的项目推送到 gitlab 以测试 git ci,但它构建失败
【发布时间】:2017-01-28 10:28:21
【问题描述】:

这些是我的错误信息

Running with gitlab-ci-multi-runner 1.5.3 (fb49c47)
Using Shell executor...
Running on luckyxmobiledeMac-mini-2.local...
Fetching changes...
HEAD is now at e56d7ac Update README.md
Checking out e56d7ace as master...
bash: line 4: shell_session_update: command not found
ERROR: Build failed: exit status 127

这些是我的 .gitlab-ci.yml:=

的内容 阶段: - 建造 构建项目: 阶段:构建 脚本: -xcodebuild clean -project ProjectName.xcodeproj -scheme SchemeName |漂亮的 - xcodebuild test -project ProjectName.xcodeproj -scheme SchemeName -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.2' | xcpretty -s 标签: - ios_9-2 - osx_10-11

【问题讨论】:

  • 您还必须向我们展示您的 .gitlab-ci.yml 构建脚本。
  • 你是否可以访问运行运行器的服务器(luckyxmobiledeMac-mini-2.local)?

标签: git gitlab gitlab-ci-runner


【解决方案1】:

基于this question on Super User,这似乎是服务器上rvm 包的问题。

您可以阅读该问题和答案以获得有关问题的完整解释,但他们的解决方案是将 rvm 更新到版本 1.26.11 或更高版本。

要更新到最新的稳定版本,请执行以下操作:

rvm get stable

【讨论】:

  • 我们的服务器上有三个运行良好的跑步者。
  • @superRain 其他跑步者是否使用 shell 执行器,并且构建是否适用于这些跑步者?
  • 是的,因为我们用的是mac。而我的 gitlab-ci-multi-runner 无法成功运行。这些都是错误的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-04-07
  • 2018-06-05
  • 1970-01-01
  • 1970-01-01
  • 2017-11-14
  • 2018-07-24
  • 1970-01-01
相关资源
最近更新 更多