Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Pipelines runs indefinitely

yoast
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2018

Well, at least until my build minutes are up. I am deploying by running a shell script. This script finishes properly, but the pipeline does not notice that and stays in the "in progress" state.

Does anybody have an idea about why this is happening? This is my pipeline:

image: atlassian/default-image:latest
pipelines:
    default:
        -
step:
            deployment: staging
           -
cat ./deploy.sh | ssh -tt root@justbee.nl bash -s - $BITBUCKET_REPO_SLUG $BITBUCKET_BRANCH
           -
echo "Deploy step finished"

 

The script that is called:
echo "Deploy script started"
cd /somewhere
bash pull.sh "$1" "$2"
echo "Deploy script finished execution"
exit 0

The script that is called from here is also properly exitting.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events