Skip to content

Commit

Permalink
Stop reset job before failure (#2074)
Browse files Browse the repository at this point in the history
Use halt to gracefully stop reset job if no instance is found
  • Loading branch information
lithrel authored Aug 1, 2023
1 parent 86440cc commit 889c572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ jobs:
name: Get merge commit test instance
command: |
instance=$(find-commit-test-instance.py)
if [ "$instance" = "False" || -z "$instance" ]; then
echo "No test instance found."
circleci-agent step halt
fi
mkdir -p /tmp/workspace/
echo "$instance" >/tmp/workspace/test-instance
- run:
Expand Down

0 comments on commit 889c572

Please sign in to comment.