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

Commit 8009b5c

Browse files
rcnyRoss Bulat
authored andcommitted
CI: Code mark to request a pipeline failure (#13139)
1 parent b31b0c6 commit 8009b5c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/ci/gitlab/pipeline/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
# This file is part of .gitlab-ci.yml
22
# Here are all jobs that are executed during "test" stage
33

4+
5+
# It's more like a check and it belongs to the previous stage, but we want to run this job with real tests in parallel
6+
find-fail-ci-phrase:
7+
stage: test
8+
variables:
9+
CI_IMAGE: "paritytech/tools:latest"
10+
ASSERT_REGEX: "FAIL-CI"
11+
GIT_DEPTH: 1
12+
extends:
13+
- .kubernetes-env
14+
script:
15+
- set +e
16+
- rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$?
17+
- if [ $exit_status -eq 0 ]; then
18+
echo "$ASSERT_REGEX was found, exiting with 1";
19+
exit 1;
20+
else
21+
echo "No $ASSERT_REGEX was found, exiting with 0";
22+
exit 0;
23+
fi
24+
425
cargo-deny:
526
stage: test
627
extends:

0 commit comments

Comments
 (0)