Conditional Builds

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,582 views 0 6
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