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.
I believe the answer is that there is no Bamboo variable to indicate the reason the build was triggered. I have filed BAM-13030 requesting this feature.
Yeap great that you already raised a request for that :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[I need to scrap this answer altogether, turns out my tests were flawed and my workaround did not work...]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.