When should a build task be triggered while using GitFlow?

Hi, I'm using SourceTree 2 and Bamboo 6 (hosted on Windows) when working on C++/C# game projects using Visual Studio 2017.

 

This can be a matter of preferences. However, I wanted to know how other use Bamboo when using GitFlow.

 

After the features and others are prepared, I merge it to the master branch.

I have configured that Bamboo only builds when there is a commit on the master branch. I haven't prepared a release for the game projects, yet.

As a result, I felt that I'm not using Bamboo to the fullest.

So I was thinking when should I trigger a build.

 

When do others configure their Bamboo build plans while working on game development using GitFlow?

 

-Best regards

 

1 comment

Cristiano Oliveira Community Champion Jul 06, 2017

Hi Young! How are you doing?

We usually setup bamboo to create build branches automatically for every branch created in the bitbucket repository.

When developers push changes to their branches, bamboo builds the branch and, only then, they are allowed to merge pull request to other branches in the flow.

We like this approach because when developers push something that breakes build, the break only the build of their branch and main branches remain untouched.

Hope this helps!

Thanks,

Cristiano

Hello, Cristiano!

I had some headache for configuring Bamboo.

 

How your answer has healed me!

"We usually setup bamboo to create build branches automatically for every branch created in the bitbucket repository."

Wow, every branch.

 

I will keep that in mind.

Thanks for your tip!

 

-Best Regards

 

 

It depends.  How much build time can you afford?  What tasks are part of your build process.  An idle CPU is a wasted CPU and a high queue time is worse than a wasted CPU.

 

In our case, we build automatically on all non-feature branches so we can detect failure earlier in our unit tests and static analysis.  For feature branches we leave it up to developers to run them or not manually.  Our static analysis task takes long enough that we can't afford to run it with every build, so we have it set as a dependent child plan so that it runs as long as there are no other builds for the same branch queued.

Comment

Log in or Join to comment
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,067 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot