Hi,
Is there anyway to receive a slack notification on starting the pipeline before anything else ie "Build Setup"?
This is part of my current config
pipelines:
default:
- step:
deployment: test
script:
- pipe: atlassian/slack-notify:2.0.0
variables:
WEBHOOK_URL: $SLACK_WEBHOOK_URL
MESSAGE: 'A deployment is being done .. That may take 18 minutes, Please do not commit any changes during this period'
- apt-get update
- apt-get install -y zip
- zip -r application.zip .
- pipe: atlassian/aws-code-deploy:0.2.5
.....
Hello @amrsalah944 ,
Welcome to Atlassian Community!
Since the atlassian/slack-notify pipe you use to send a notification to slack runs inside a docker container, I'm afraid it's not possible to run it before the Build Setup.
Currently you can only configure slack notification for pipeline:succeeded, pipeline:failed and pipeline:fixed under Repository Settings > Settigs (under Slack). I went ahead and created the following feature request to add the event "pipeline:start" in the bitbucket slack integration :
I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.
Thank you, @amrsalah944 .
Kind regards,
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.