.

iT邦幫忙

1

Gitlab CI/CD 註冊 shell runner 後,使用會pending

  • 分享至 

  • xImage

我註冊了一個gitlab-runner,選擇shell
我有把Can run untagged jobs 選擇 yes

stages:
  - test

test-runner:
  stage: test
  tags:
    - shell
  
  script:
    - echo "GitLab CI/CD Runner is working!"
    - echo "This job is using the shell executor."

上傳.gitlab-ci.yml 後就卡在pending

This job is stuck because of one of the following problems. There are no active runners online, no runners for the protected branch, or no runners that match all of the job's tags: shell
Go to project CI settings

nansen iT邦新手 2 級 ‧ 2025-01-24 13:33:54 檢舉
no runners for the protected branch,如果你git只推一個分支,他會自動變成受保護分支,去除這個設定就可以了
.
圖片
  直播研討會

1 個回答

我要發表回答

立即登入回答