How Can I notify the developer who commits and build his code in case of success/faile

yosser.mahfoudh May 31, 2022

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 ?

2 answers

0 votes
lissyaka June 3, 2022

@yosser.mahfoudhhi.

Also you can check this answer where pipe email-notify used.

Cheers

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 2, 2022

Hi @yosser.mahfoudh

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events