File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -70,16 +70,20 @@ integration-test:
7070 - script :
7171 name : Run integration tests
7272 code : |
73- function finish {
74- exit_code=$?
75- varname=${WERCKER_DEPLOYTARGET_NAME}
76- export ${!varname}-result=$exit_code
77-
73+ function cleanup_and_store {
7874 # clean up
7975 yum clean all
8076
8177 # store the artifacts so we can download them easily
8278 tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
79+ }
80+
81+ function finish {
82+ exit_code=$?
83+ varname=${WERCKER_DEPLOYTARGET_NAME}
84+ export ${!varname}-result=$exit_code
85+
86+ cleanup_and_store
8387 exit 0
8488 }
8589 trap finish EXIT
@@ -174,6 +178,7 @@ integration-test:
174178 # integration tests
175179 $WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
176180
181+ cleanup_and_store
177182
178183# This pipeline runs quality checks
179184quality :
You can’t perform that action at this time.
0 commit comments