繁体   English   中英

更改目录时,Gitlab CI运行程序作业退出状态失败1

[英]Gitlab CI runner job failed exit status 1 when changing directory

我将个人计算机用作使用Fastlane的iOS项目的运行程序。 这主要是由于未安装共享运行程序的原因,因为它们未安装Xcode。

更改目录时,我的作业立即失败。

这是一个外壳运行程序,根本没有其他自定义配置。

有什么建议么?

在此处输入图片说明

这是运行gitlab-runner --debug run并启动作业时的输出。 Checking for jobs... received job=59131527 repo_url=https://gitlab.com/nickfarrant/aqualog-asset-collection.git runner=159b2b59 Failed to requeue the runner: builds=1 runner=159b2b59 Running with gitlab-ci-multi-runner 9.0.2 (fa8b86d) on Nicks-Bink-iMac (159b2b59) job=59131527 project=5134442 runner=159b2b59 Shell configuration: environment: [] dockercommand: - sh - -c - "if [ -x /usr/local/bin/bash ]; then\\n\\texec /usr/local/bin/bash --login\\nelif [ -x /usr/bin/bash ]; then\\n\\texec /usr/bin/bash --login\\nelif [ -x /bin/bash ]; then\\n\\texec /bin/bash --login\\nelif [ -x /usr/local/bin/sh ]; then\\n\\texec /usr/local/bin/sh --login\\nelif [ -x /usr/bin/sh ]; then\\n\\texec /usr/bin/sh --login\\nelif [ -x /bin/sh ]; then\\n\\texec /bin/sh --login\\nelse\\n\\techo shell not found\\n\\texit 1\\nfi\\n\\n" command: bash arguments: - --login passfile: false extension: "" job=59131527 project=5134442 runner=159b2b59 Using Shell executor... job=59131527 project=5134442 runner=159b2b59 Waiting for signals... job=59131527 project=5134442 runner=159b2b59 WARNING: Job failed: exit status 1 job=59131527 project=5134442 runner=159b2b59

我遇到了同样的情况,我解决了。

我猜你用过rvm。

请遵循以下内容:

  1. 打开终端

  2. echo 'unset cd'>>~/.bash_profile; source ~/.bash_profile

  3. 重试管道。

请参阅: https//juejin.im/post/5a65977bf265da3e4e25bfb8

我在- cd ..步骤之前添加了- unset cd ,它可以正常工作。

暂无
暂无

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

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