解決 GitLab 遇到 You have used all your shared Runners pipeline minutes 的問題

GitLab 遇到 You have used all your shared Runners pipeline minutes (您已经使用了所有共享Runner的流水线时间。) 的問題。透過自架 GitLab Runner 或購買 Silver/Gold 方案可以解決問題。



GitLab CI / CD 頁面顯示的錯誤訊息
This job is stuck, because you don't have any active runners that can run this job. Go to Runners page
You have used all your shared Runners pipeline minutes. 2009 of 2000
或者是
xxx has exceeded their pipeline minutes quota. Pipelines will not run anymore on shared Runners.

解決方式:

方法1: 購買 Silver Plan 或 Gold Plan 增加 shared Runners pipeline minutes 的時間數。方案比較詳見 GitLab Pricing | GitLab


方法2: 使用自己機器架設 GitLab Runner 將不會計算在 shared Runners pipeline minutes 限制內。架設說明請參考: (1) Install GitLab Runner | GitLab (2) Registering Runners | GitLab 同一台機器可以註冊多個 GitLab Runner。

方法3: 等到下個月一號,shared Runners pipeline minutes 的數量會重新計算。
從 GitLab Pricing | GitLab 的「Frequently asked questions for GitLab.com」提到
If you reach your limits, you simply won’t be able to use our shared runners to execute pipelines until the end of your current billing cycle, or until you upgrade your account to Silver or Gold. Your own runners can still be used even if you reach your limits.
文章中提到的 billing cycle 是指每個月一號。如果想要知道這個月使用多少 pipeline minutes,請點選帳號 --> Settings --> Pipeline quota (網址傳送門) 可以查看這個月總共使用多少額度,以及不同專案已經使用的額度。


參考資料:

圖片素材:
Free Photo of web, developer, working - StockSnap.io (Thanks, Christina Morillo!)

留言