Now that a build can be triggered for multiple reasons, I'd like to use that information. For instance, I would like to only run the sonar analysis on the nightly/scheduled build, not on the builds triggered by other builds or by checkins.
How is this solved? I still cannot easily tell whether a build was run due to a commit or a scheduled run. I don't where else to vent my frustrations at yet another key feature that should be trivial to implement and years later does not exist.
Now I'm faced with using the REST Api to trigger nightly builds with a specific 'nightly' user to distinguish these from daytime manual builds (where a user other than 'nightly' is the value of that half-baked ManualBuildTriggerReason variable) and scm trigger builds where that variable will not be set at all.
This means the configuration for nightly builds will have to live *outside* of bamboo altogether.
Hmm I can`t seem to find a variable to retrive that. The only vailable variable is to retrieve the person who triggered a manual build using the variable bamboo.ManualBuildTriggerReason.userName
I am kind of believeing you can retireve this info using rest API call as explained in http://docs.atlassian.com/bamboo/REST/4.0/#idp108720