Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,294
Community Members
 
Community Events
165
Community Groups

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

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

@yosser_mahfoudhhi.

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

Cheers

0 votes
Mark C Atlassian Team Jun 02, 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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,265 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you