Who triggered a manual stage?

Is there any way to find out which user triggered a manual stage in Bamboo? When I look at the Summary for that stage it tells me that the build was triggered by changed code. This was true for the first stage, but not for the manual stage at the end of the build.

3 answers

Yeah this is something that'd be useful for us.. we use the Atlassian CLI on our agents to do things like "auto-comment" and "promote tasks", etc.. we use Manaul Stages for "Approval" steps... and it'd be nice to have our auto-commenter code say, "This build was approved by _________" and be able to access a variable that was whoever triggered the manual stage

It looks like Bamboo 4.0 has this feature...but it's not working. I triggered a manual build. Another user then triggered a manual stage after all the automatic stages had completed. The Dashboard now says "Manual build by Dave," listing the user who triggered the last manual stage. The build page sometimes says "Trigger: The build was manually triggered from the stage: Deploy by Dave" and sometime says "Trigger: The build was manually triggered from the stage: Deploy by Heather," changing as you click the various stages.

Yeah we've seen this as well... depending on how the trigger occured affects what is shown as the "user" who triggered it... and it seems that the MetaData variable for hte username doesn't really know exactly who triggered the manual stage and from where

Heather, to confirm, are you looking at the trigger reason for build results that were created after your upgrade to Bamboo 4? The fix we added does not work retrospectively across your old build results.

I fixed this with a PreJobAction and the example code from https://answers.atlassian.com/questions/35653/is-it-possible-to-set-bamboo-variables-in-one-stage-via-custom-task-and-retrieve-it-in-a-different-stage -- there really needs to be more flexible and comprehensive documentation on how to set variables in Bamboo.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot