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
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

3,327 views 8 7
View question

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