Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Tracking user for manual builds

Jason Gearheart April 18, 2013

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
Answer accepted
ssetayeshfar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2013

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
TAGS
AUG Leaders

Atlassian Community Events