Watch bitbucket pipelines until it completes or the first step fails.
Uses OSX osascript for notifications so it only works on OSX.
Requires app password: https://bitbucket.org/account/settings/app-passwords/
- Create an app password with at least 'Pipeline Read' permissions
- Set BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD in your bashrc
You can paste in the URI of the pipeline from the UI
./bitbucket_pipeline_watcher.sh 'https://bitbucket.org/workspace/repo/addon/pipelines/home#!/results/1234'
You can specify which workspace, repo and pipeline to watch
./bitbucket_pipeline_watcher.sh [workspace] [repo] [pipeline]
You can choose to alert on failure if even a single step fails
STRICT=1 ./bitbucket_pipeline_watcher.sh [workspace] [repo] [pipeline]