Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to manually fail a pipeline?

Frederick Zhang June 2, 2017

Hi guys,

 

I am uploading the logs of unit testing to S3 so the logic of the script is like:

set +e
./perform_unit_testing.sh
RESULT=$?
set -e
./upload_logs.sh
exit $RESULT

...but it makes the pipelines always succeed regardless of the value of RESULT.

 

How to correctly fail a pipeline?

1 answer

0 votes
Frederick Zhang June 2, 2017

This is kind of related to https://bitbucket.org/site/master/issues/13317/final-step-required-for-parsing-unit-tests but I am still wondering why mine doesn't work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events