Tracking user for manual builds

I am trying to log who is triggering manual builds from Bamboo. Sometimes Bamboo is good about tracking who did the build in the Activity Stream, but even this fails sometimes where Bamboo reports Anonymous (we do not allow Anonymous logins).

I have tried to use the ${bamboo.ManualBuildTriggerReason.username} variable from the metadata, but this is also unreliable.

I don't want to have to go the route of writing my own custom plugin to solve this.

Any suggestions or ideas about a plugin that I could use for this purpose?

1 answer

1 accepted

Hi Jason,

The "bamboo.ManualBuildTriggerReason.userName" variable is a default build specific variable that is working correctly, at least in the latest version of Bamboo 4.4.5, and should provides the correct user. (https://confluence.atlassian.com/display/BAMBOO/Using+global,+plan+or+build-specific+variables)

The only problematic scenario is if there is a scheduled build or a build triggered by the repository, it seems like it doesn't record the user who manually runs the following paused manual Stage. There is an open improvement request for this issue to which you can add yourself as a watcher to receive updates or add comments: [Logging Who Triggered a Manual Stage|https://jira.atlassian.com/browse/BAM-12858]. I sthis the problem you have with this variable? Or even for a full manual plan the user is showing up as anonymous? What is your version of Bamboo?

Can this help: 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

Best,

Sepideh

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,816 views 0 6
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