Gitlab CI runner job failed exit status 1 when changing directory(更改目录时,GitLab CI运行器作业退出状态%1失败)
本文介绍了更改目录时,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失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:更改目录时,GitLab CI运行器作业退出状态%1失败
基础教程推荐
猜你喜欢
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01