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?
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?
Best,
Sepideh
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.