0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitLabでPipeline blocked. The pipeline for this merge request requires a manual action to proceedと言われマージできない

Posted at

原因

GitLab-ci.ymlファイルにて、手動の実行対象となっているいずれかのjobのallow_failureキーワードがfalseになっているにも関わらず、未だ実行がされていないためマージがブロックされていると考えられる。

具体的には、以下のようにwhen: manualが有効になっているにも関わらず、allow_failure: falseとしている事が原因と考えられる。

deploy:
  stage: deploy
  script:
      - somescript
  when: manual
  allow_failure: false

対策

allow_failure: falseを消す。
allow_failureのデフォルト値は元々falseだが、今回のようにwhen: manualを設定している場合は、rules:構文を使っている場合を除いてtrueとなる。

そのため、allow_failure: falseを消しさえすれば、true扱いとなり、CI上で失敗・未実行が許容されるようになるので、未実行でもマージできる。

参考文献

GitLab CI/CD pipeline configuration reference - allow_failure

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?