Continuous Integration Best practices

Hi .

What is the Best practices for Continuous Integration?

We have Bamboo & GIT. Our main application is build using GWT. Our application compilation takes huge time if we compile on local developer machine with 4 GB of RAM. 

So the question is:

 

As per the CI process , Should the developer build on Local machine or Should he directly push the code to GIT central repo in his/her branch and Bamboo build server should build for him?

 

Please Suggest.

 

Thanks , Niraj.

 

 

1 answer

1 vote
Marcin Oles Atlassian Team Dec 08, 2014

Hi,

I think you should always first build your code on your own machine, to avoid pushing code which does not compile or is unstable. Building project locally is usually a necessity.

You could then use Bamboo to do other things for you - besides building your code (maybe on another OS, which could be beneficial), Bamboo can execute long running tests or perform deployments/releases to various environments.

For some additional guides, you can see https://confluence.atlassian.com/display/BAMBOO/Bamboo+Best+Practice page.

Regards,
Marcin

Hello , What should be done in a case where compilation on developer machine takes lot of time & indirectly impacts their productivity? Thanks , Niraj

Marcin Oles Atlassian Team Dec 09, 2014

There aren't many options I think. - One way to improve compilation time would be to avoid clean-building and use just building whenever possible, although I'm not very familiar with GWT. As far as I know, GWT is a slow technology. - Another option would be to improve your machine. SSD drives, faster processor etc. could help. But if you really find it impacting productivity, you *could* use Bamboo as you described (to actually build your branch and avoid building code locally). But in such case your team should use personal branches, and it would be hard to co-operate on one branch for many people (as the branch will often be unstable). It's far from being recommended and a good practice, though it's something you can consider and do.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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,493 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