更改目录时,GitLab CI运行器作业退出状态%1失败 [英] Gitlab CI runner job failed exit status 1 when changing directory

查看:43
本文介绍了更改目录时,GitLab CI运行器作业退出状态%1失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用我的个人计算机作为一个iOS项目的跑步者,该项目使用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 exec /usr/local/bin/bash --login elif [ -x /usr/bin/bash ]; then exec /usr/bin/bash --login elif [ -x /bin/bash ]; then exec /bin/bash --login elif [ -x /usr/local/bin/sh ]; then exec /usr/local/bin/sh --login elif [ -x /usr/bin/sh ]; then exec /usr/bin/sh --login elif [ -x /bin/sh ]; then exec /bin/sh --login else echo shell not found exit 1 fi " 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

这篇关于更改目录时,GitLab CI运行器作业退出状态%1失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆