-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request #611
611: ci(jenkins): cleanup on test failure r=tiagolobocastro a=tiagolobocastro Also ensures Jenkins does the cleanup always. Co-authored-by: Tiago Castro <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR="$(dirname "$0")" | ||
export ROOT_DIR="$SCRIPT_DIR/../.." | ||
|
||
sudo nvme disconnect-all | ||
"$ROOT_DIR"/target/debug/deployer stop | ||
|
||
for c in $(docker ps -a --filter "label=io.composer.test.name" --format '{{.ID}}') ; do | ||
docker kill "$c" | ||
docker rm -v "$c" | ||
done | ||
|
||
for n in $(docker network ls --filter "label=io.composer.test.name" --format '{{.ID}}') ; do | ||
docker network rm "$n" || ( sudo systemctl restart docker && docker network rm "$n" ) | ||
done | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters