Bamboo feature branch dependency

Hey all I'm trying to figure out the best way to set up bamboo to support our chaotic dependency system. We currently have a lot of shared code in one repository (eg: utils) which supports multiple applicaitons (App A, App B). We use a general gitflow system, so for a new feature (feature/A) we could create branches in both App A and the untils repositories with the same name.

How in bamboo is the easiest way to get the build plans to know that when building App A, if there is a matching branch (feature/A) in utils to use that artifact during the execution, otherwise default to a different version(eg: master).

 

Hope that makes sense, but outside of writing some shell script that checks the repositories and sets variables in bamboo to then pass during the build process, I'm not sure the easiest way to do this.

1 answer

0 votes
Timothy Chin Community Champion Mar 12, 2016

I think you're better off this way.

Every artifact in your utils should be managed by a repository (e.g. Artifactory). With that, you can write a script to pull the artifact down based on the branch you are executing. You can ever pass the artifact identifier as a variable for the Product A build.

It's much easier this way.

Suggest an answer

Log in or Join to answer
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,064 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot