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

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 Sign up to comment
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

299 views 1 4
Join discussion

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