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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a Bamboo variable which indicates the trigger type?

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.

4 answers

1 accepted

2 votes
Answer accepted

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 :)

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

[I need to scrap this answer altogether, turns out my tests were flawed and my workaround did not work...]

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

622 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you