Conditional Builds

Alex Knowles May 28, 2012

Hi,

Sorry for the possibly vague and off topic question,

Our software is split into several different modules (split along language eg flash / perl / flex etc), although (at the moment) all in one git repo.

The modules change at different speeds, and take different lengths of time to build, but all produce rpms.

I'd like to change our bamboo setup to only build a module if the source for that changes (otherwise use the previously built rpm)

Is Maven the right tool for this job? Or Artifactory? Or both?!

Ideally we'd carry on using the branch triggered building and be able to mix and match the generated rpm artifacts to represent the state of the source in any branch without having to rebuild.

Any suggestions would be gratefully received.

Yours &c.

Alex

1 answer

0 votes
James Dumay
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2012

Hi Alex,

If you split each module up so it can be built by different plans you can get them to build individually or in a dependant order.

Take for this example, you have two Modules - Module A and Module B.

If module B depends on module A, you can configure Dependency Blocking so that if Module B is run and its parent (in this case Module A) has changes, it will trigger a build of module A before triggering module B.

This will work even if you are using the same source repository.

Are you using Plan Branches to manage your branch builds? At the moment we do not support dependencies between branch builds but we are looking at adding support for Branch Dependecies in the next release of Bamboo.

Let me know if you have any follow up questions :)

Thanks
James

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events