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

How can i fail a bamboo deployment?

Julio Faerman January 5, 2014

If my deployment script finds an error, how can it signal this to bamboo so that it shows an error status instead of "deployed" ?

1 answer

1 accepted

1 vote
Answer accepted
Aseem Parikh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2014

If you exit the script with a status code of anything but '0', Bamboo will consider the script failed.

#!/bin/bash

if [ -z $1 ]; then
    echo "At least 1 argument is required"
    exit 1
fi

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events