diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index ce5b96c..eb5d540 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -1,4 +1,4 @@ ---- +--- image: atlassian/default-image:2 definitions: @@ -189,7 +189,8 @@ pipelines: - npx playwright install chromium - ./bin/staging-test after-script: - - if [ $BITBUCKET_EXIT_CODE -ne 0 ]; then + - | + if [ $BITBUCKET_EXIT_CODE -ne 0 ]; then curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"🚨 Pipeline Failed: Staging verification/tests failed for commit $BITBUCKET_COMMIT. \"}" https://hooks.slack.com/services/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 fi custom: @@ -231,6 +232,7 @@ pipelines: - npx playwright install chromium - ./bin/staging-test after-script: - - if [ $BITBUCKET_EXIT_CODE -ne 0 ]; then + - | + if [ $BITBUCKET_EXIT_CODE -ne 0 ]; then curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"🚨 Pipeline Failed: Staging verification/tests failed for commit $BITBUCKET_COMMIT. \"}" https://hooks.slack.com/services/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 - fi \ No newline at end of file + fi