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

Commit

Permalink
CI: Code mark to request a pipeline failure (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcny authored Feb 1, 2023
1 parent 5bfa1dd commit b97eb8d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/ci/gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# This file is part of .gitlab-ci.yml
# Here are all jobs that are executed during "test" stage

# It's more like a check, but we want to run this job with real tests in parallel
find-fail-ci-phrase:
stage: test
variables:
CI_IMAGE: "paritytech/tools:latest"
ASSERT_REGEX: "FAIL-CI"
GIT_DEPTH: 1
extends:
- .kubernetes-env
script:
- set +e
- rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$?
- if [ $exit_status -eq 0 ]; then
echo "$ASSERT_REGEX was found, exiting with 1";
exit 1;
else
echo "No $ASSERT_REGEX was found, exiting with 0";
exit 0;
fi

test-linux-stable:
stage: test
extends:
Expand Down

0 comments on commit b97eb8d

Please sign in to comment.