Skip to content

Commit 3048318

Browse files
committed
Store on wercker failure
1 parent bd6c687 commit 3048318

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

wercker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,18 @@ integration-test:
158158
echo "$IMAGE_NAME_OPERATOR:$IMAGE_TAG_OPERATOR"
159159
160160
# integration tests
161-
$WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
162-
161+
sh $WERCKER_SOURCE_DIR/src/integration-tests/bash/run.sh
162+
local exit_code=$?
163+
163164
# clean up
164165
yum clean all
165166
166167
# store the artifacts so we can download them easily
167168
tar czvf ${WERCKER_REPORT_ARTIFACTS_DIR}/integration-test-data.tar.gz /pipeline/output/*
169+
170+
if [ ${exit_code} -ne 0 ] ; then
171+
exit ${exit_code}
172+
fi
168173
169174
# This pipeline runs quality checks
170175
quality:

0 commit comments

Comments
 (0)