[ci] Disable auto-fmt and revert cancel-pipeline (#1642)

* [WIP][ci] Disable auto-fmt and revert cancel-pipeline

* fail test-linux-stable

* fix test-linux-stable
This commit is contained in:
Alexander Samusev
2022-09-20 11:27:41 +02:00
committed by GitHub
parent 6a2dd3c688
commit 63852d50e7
+1 -32
View File
@@ -112,23 +112,6 @@ variables:
tags: tags:
- kubernetes-parity-build - kubernetes-parity-build
#### stage: .pre
# checks code format and fails if formatting is required
# the code will be formatted automatically and the pipeline will be restarted
cargo-fmt:
stage: .pre
<<: *pr-refs
<<: *kubernetes-env
before_script:
- echo PROJECT_NAME=$CI_PROJECT_NAME > fmt.env
- echo PR_BRANCH_NAME=$(curl -s https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/pulls/${CI_COMMIT_REF_NAME} | jq -r ".head.ref") >> fmt.env
script:
- cargo +nightly fmt --check
artifacts:
reports:
dotenv: fmt.env
#### stage: test #### stage: test
test-linux-stable: test-linux-stable:
@@ -686,19 +669,5 @@ cancel-pipeline:
PR_NUM: "${PR_NUM}" PR_NUM: "${PR_NUM}"
trigger: trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper" project: "parity/infrastructure/ci_cd/pipeline-stopper"
# remove branch, when pipeline-stopper for substrate and polakdot is updated to the same branch
branch: "as-improve"
# this job will automatically format code and rerun pipeline if cargo-fmt job fails
auto-fmt:
stage: .post
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: on_failure
needs:
- job: cargo-fmt
variables:
PROJECT_NAME: "${CI_PROJECT_NAME}"
PR_BRANCH_NAME: "${PR_BRANCH_NAME}"
trigger:
project: "parity/infrastructure/ci_cd/auto-fmt"