Hi!
Hi
To retrieve the status execution from Bitbucket's trigger-pipeline, add a polling mechanism to check the pipeline status using the Bitbucket API. Set WAIT: 'true' initiates the wait, but it does not update your script status. Use the following API endpoint to check pipeline status:
curl -u "username:$BITBUCKET_ACCESS_TOKEN" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}"
Poll this endpoint in your script after triggering the pipeline to get the status details, and set conditional actions based on the response. This will help automate the GitOps pipeline status check.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.