簡體   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