diff --git a/Jenkinsfile b/Jenkinsfile index c3f4c93..2806c4a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -94,7 +94,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/daily_master_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/daily_master_gate.sh' + } } } } @@ -105,7 +107,9 @@ spec: } steps { container('rust-ci') { - sh 'scripts/ci/hygiene_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'scripts/ci/hygiene_gate.sh' + } } } } @@ -116,7 +120,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/quality_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/quality_gate.sh' + } } } } @@ -127,7 +133,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/test_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/test_gate.sh' + } } } } @@ -138,7 +146,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/performance_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/performance_gate.sh' + } } } } @@ -149,7 +159,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/media_reliability_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/media_reliability_gate.sh' + } } } } @@ -160,7 +172,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" LESAVKA_ALLOW_DISRUPTIVE_INPUT_TESTS=1 scripts/ci/input_transport_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" LESAVKA_ALLOW_DISRUPTIVE_INPUT_TESTS=1 scripts/ci/input_transport_gate.sh' + } } } } @@ -171,7 +185,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" LESAVKA_ALLOW_LAB_HARDWARE_TESTS=1 scripts/ci/baremetal_lab_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" LESAVKA_ALLOW_LAB_HARDWARE_TESTS=1 scripts/ci/baremetal_lab_gate.sh' + } } } } @@ -182,7 +198,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/gate_glue_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/gate_glue_gate.sh' + } } } } @@ -193,7 +211,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/sonarqube_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/sonarqube_gate.sh' + } } } } @@ -204,7 +224,9 @@ spec: } steps { container('rust-ci') { - sh 'scripts/ci/build-dist.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'scripts/ci/build-dist.sh' + } } } } @@ -215,7 +237,9 @@ spec: } steps { container('rust-ci') { - sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/supply_chain_gate.sh' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + sh 'QUALITY_GATE_PUSHGATEWAY_URL="${QUALITY_GATE_PUSHGATEWAY_URL}" scripts/ci/supply_chain_gate.sh' + } } } }