can anyone please tell me how to configure for every build success/failure. Need to send to the one who commits his code that the build failed or successeded ?
Thank you for reaching out to the community.
If you're using Bitbucket Pipelines, you can use the YAML configuration called After scripts.
After scripts, allows you to run scripts at the end of a step execution, regardless of whether the step has failed or succeeded.
Here's a sample YAML configuration:
pipelines: branches: master: - step: name: Test script: - #some scripts here after-script: - ./send_notifcation.sh $BITBUCKET_EXIT_CODE
Hope it helps and let me know if you have further questions.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.