File tree Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ functions:
519
519
- .evergreen/scripts/run-with-env.sh
520
520
- .evergreen/scripts/cleanup.sh
521
521
522
- " teardown " :
522
+ " teardown system " :
523
523
- command : subprocess.exec
524
524
params :
525
525
binary : bash
@@ -601,20 +601,13 @@ functions:
601
601
args :
602
602
- src/.evergreen/scripts/stop-load-balancer.sh
603
603
604
- " teardown_docker " :
605
- - command : subprocess.exec
606
- params :
607
- binary : bash
608
- args :
609
- - src/.evergreen/scripts/teardown-docker.sh
610
-
611
- " teardown_aws " :
604
+ " teardown " :
612
605
- command : subprocess.exec
613
606
params :
614
607
binary : bash
615
608
args :
616
609
- src/.evergreen/scripts/run-with-env.sh
617
- - src/.evergreen/scripts/teardown-aws .sh
610
+ - src/.evergreen/scripts/teardown.sh
618
611
619
612
" teardown atlas " :
620
613
- command : subprocess.exec
@@ -652,14 +645,13 @@ pre:
652
645
post :
653
646
# Disabled, causing timeouts
654
647
# - func: "upload working dir"
648
+ - func : " teardown system"
655
649
- func : " teardown"
656
650
- func : " upload coverage"
657
651
- func : " upload mo artifacts"
658
652
- func : " upload test results"
659
653
- func : " stop mongo-orchestration"
660
- - func : " teardown_aws"
661
654
- func : " cleanup"
662
- - func : " teardown_docker"
663
655
664
656
task_groups :
665
657
- name : serverless_task_group
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Teardown AWS
4
+ pushd " ${DRIVERS_TOOLS} /.evergreen/auth_aws" || true
5
+ if [ -f " ./aws_e2e_setup.json" ]; then
6
+ . ./activate-authawsvenv.sh
7
+ python ./lib/aws_assign_instance_profile.py
8
+ fi
9
+
10
+ popd || true
11
+
12
+ # Remove all Docker images
13
+ DOCKER=$( command -v docker) || true
14
+ if [ -n " $DOCKER " ]; then
15
+ docker rmi -f " $( docker images -a -q) " & > /dev/null || true
16
+ fi
You can’t perform that action at this time.
0 commit comments