菜鸟教程小白 发表于 2022-12-13 15:55:56

ios - 更改目录时Gitlab CI runner作业失败退出状态1


                                            <p><p>我正在使用我的个人机器作为使用 FaSTLane 的 iOS 项目的运行器。这主要是因为共享运行器没有为 iOS 设置,因为它们没有安装 Xcode。</p>
<p>更改目录时我的作业立即失败。</p>
<p>它是一个 shell 运行器,根本没有其他自定义配置。</p>
<p>有什么建议吗?</p>
<p> <a href="/image/hantY.png" rel="noreferrer noopener nofollow"><img src="/image/hantY.png" alt="enter image description here"/></a> </p>
<p>这是运行 <code>gitlab-runner --debug run</code> 并开始作业时的输出。</p>
<pre><code>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
- &#34;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&#34;
command: bash
arguments:
- --login
passfile: false
extension: &#34;&#34;
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
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我遇到了同样的情况,我解决了。</p>

<p>我猜你用的是 rvm。</p>

<p>请关注以下内容:</p>

<ol>
<li><p>打开终端</p></li>
<li><p><code>echo 'unset cd'>>~/.bash_profile;源码~/.bash_profile</code></p></li>
<li><p>重试管道。</p></li>
</ol>

<p>引用:<a href="https://juejin.im/post/5a65977bf265da3e4e25bfb8" rel="noreferrer noopener nofollow">https://juejin.im/post/5a65977bf265da3e4e25bfb8</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 更改目录时Gitlab CI runner作业失败退出状态1,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/49444879/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/49444879/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 更改目录时Gitlab CI runner作业失败退出状态1