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

1 vote
Accepted answer

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

72 views 3 3
Join discussion

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