Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[ci] Improve pipeline stopper (#6300)
Browse files Browse the repository at this point in the history
* [ci] Improve pipeline stopper

* break test-linux-stable

* fix test-linux-stable
  • Loading branch information
alvicsam authored Nov 16, 2022
1 parent 756ccc3 commit a3d25c7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,24 @@ deploy-parity-testnet:
PR_NUM: "${PR_NUM}"
trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper"
branch: "as-improve"

.cancel-pipeline-test-linux-stable:
remove-cancel-pipeline-message:
stage: .post
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
variables:
PROJECT_ID: "${CI_PROJECT_ID}"
PROJECT_NAME: "${CI_PROJECT_NAME}"
PIPELINE_ID: "${CI_PIPELINE_ID}"
FAILED_JOB_URL: "https://gitlab.com"
FAILED_JOB_NAME: "nope"
PR_NUM: "${CI_COMMIT_REF_NAME}"
trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper"
branch: "as-improve"

cancel-pipeline-test-linux-stable:
extends: .cancel-pipeline-template
needs:
- job: test-linux-stable
Expand Down

0 comments on commit a3d25c7

Please sign in to comment.