It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to detect who/what triggered pipeline

Hi, 

I would like to use new feature after-script: to send out notification email but only when pipeline was not triggered by user (because you know - in that case user will recive notification). So im fixing https://bitbucket.org/site/master/issues/15608/email-notification-for-failed-scheduled

Is there a way to know who / what triggered pipeline execution ?

1 answer

0 votes

Hi Pawel,

At this stage there is no information provided in Pipelines that indicates the user that triggered the pipeline.

We have an open feature request to add this an environment variable: https://bitbucket.org/site/master/issues/14006/environment-variable-for-user-who

For the time being, you could perhaps look at the author of the most recent commit to determine a user to send a notification to.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,042 views 0 3
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