mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
[ci] add job switcher (#6433)
* [ci] add job switcher * add before_script to docker and k8s runners * upd runners * sccache :(
This commit is contained in:
committed by
GitHub
parent
1aeee7cc1b
commit
193c8de9db
+12
-2
@@ -68,6 +68,7 @@ default:
|
|||||||
# they will be used if the job fails
|
# they will be used if the job fails
|
||||||
.pipeline-stopper-vars:
|
.pipeline-stopper-vars:
|
||||||
before_script:
|
before_script:
|
||||||
|
- !reference [.job-switcher, before_script]
|
||||||
- echo "FAILED_JOB_URL=${CI_JOB_URL}" > pipeline-stopper.env
|
- echo "FAILED_JOB_URL=${CI_JOB_URL}" > pipeline-stopper.env
|
||||||
- echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env
|
- echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env
|
||||||
- echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env
|
- echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env
|
||||||
@@ -78,18 +79,27 @@ default:
|
|||||||
reports:
|
reports:
|
||||||
dotenv: pipeline-stopper.env
|
dotenv: pipeline-stopper.env
|
||||||
|
|
||||||
|
.job-switcher:
|
||||||
|
before_script:
|
||||||
|
- if echo "$CI_DISABLED_JOBS" | grep -xF "$CI_JOB_NAME"; then echo "The job has been cancelled in CI settings"; exit 0; fi
|
||||||
|
|
||||||
.kubernetes-env:
|
.kubernetes-env:
|
||||||
image: "${CI_IMAGE}"
|
image: "${CI_IMAGE}"
|
||||||
|
before_script:
|
||||||
|
- !reference [.job-switcher, before_script]
|
||||||
tags:
|
tags:
|
||||||
- kubernetes-parity-build
|
- kubernetes-parity-build
|
||||||
|
|
||||||
.docker-env:
|
.docker-env:
|
||||||
image: "${CI_IMAGE}"
|
image: "${CI_IMAGE}"
|
||||||
|
before_script:
|
||||||
|
- !reference [.job-switcher, before_script]
|
||||||
tags:
|
tags:
|
||||||
- linux-docker
|
- linux-docker-vm-c2
|
||||||
|
|
||||||
.compiler-info:
|
.compiler-info:
|
||||||
before_script:
|
before_script:
|
||||||
|
- !reference [.job-switcher, before_script]
|
||||||
- rustup show
|
- rustup show
|
||||||
- cargo --version
|
- cargo --version
|
||||||
|
|
||||||
@@ -144,6 +154,7 @@ default:
|
|||||||
|
|
||||||
.build-push-image:
|
.build-push-image:
|
||||||
before_script:
|
before_script:
|
||||||
|
- !reference [.job-switcher, before_script]
|
||||||
- test -s ./artifacts/VERSION || exit 1
|
- test -s ./artifacts/VERSION || exit 1
|
||||||
- test -s ./artifacts/EXTRATAG || exit 1
|
- test -s ./artifacts/EXTRATAG || exit 1
|
||||||
- VERSION="$(cat ./artifacts/VERSION)"
|
- VERSION="$(cat ./artifacts/VERSION)"
|
||||||
@@ -230,7 +241,6 @@ remove-cancel-pipeline-message:
|
|||||||
PR_NUM: "${CI_COMMIT_REF_NAME}"
|
PR_NUM: "${CI_COMMIT_REF_NAME}"
|
||||||
trigger:
|
trigger:
|
||||||
project: "parity/infrastructure/ci_cd/pipeline-stopper"
|
project: "parity/infrastructure/ci_cd/pipeline-stopper"
|
||||||
branch: "as-improve"
|
|
||||||
|
|
||||||
cancel-pipeline-test-linux-stable:
|
cancel-pipeline-test-linux-stable:
|
||||||
extends: .cancel-pipeline-template
|
extends: .cancel-pipeline-template
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ build-test-collators:
|
|||||||
script:
|
script:
|
||||||
- time cargo build --profile testnet --verbose -p test-parachain-adder-collator
|
- time cargo build --profile testnet --verbose -p test-parachain-adder-collator
|
||||||
- time cargo build --profile testnet --verbose -p test-parachain-undying-collator
|
- time cargo build --profile testnet --verbose -p test-parachain-undying-collator
|
||||||
- sccache -s
|
|
||||||
# pack artifacts
|
# pack artifacts
|
||||||
- mkdir -p ./artifacts
|
- mkdir -p ./artifacts
|
||||||
- mv ./target/testnet/adder-collator ./artifacts/.
|
- mv ./target/testnet/adder-collator ./artifacts/.
|
||||||
|
|||||||
Reference in New Issue
Block a user