We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdf5bc commit 28cd1c9Copy full SHA for 28cd1c9
wercker.yml
@@ -71,7 +71,9 @@ integration-test:
71
name: Run integration tests
72
code: |
73
function finish {
74
- export $WERCKER_DEPLOYTARGET_NAME-result=$?
+ exit_code=$?
75
+ varname=${WERCKER_DEPLOYTARGET_NAME}
76
+ export ${!varname}-result=$exit_code
77
78
# clean up
79
yum clean all
@@ -181,7 +183,9 @@ after-test:
181
183
name: Report integration test results
182
184
185
varname=${INTEGRATION_TEST_RESULT}
- exit ${!varname}
186
+ if [ -n "$varname" ]; then
187
+ exit ${!varname}
188
+ fi
189
190
191
# This pipeline runs quality checks
0 commit comments