Gitlab CI runner job failed exit status 1 when changing directory(更改目录时,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。
请遵循以下说明:
开放终端
echo 'unset cd'>>~/.bash_profile; source ~/.bash_profile
重试管道。
请参阅:https://juejin.im/post/5a65977bf265da3e4e25bfb8
这篇关于更改目录时,GitLab CI运行器作业退出状态%1失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!