Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Different merging strategy for release branches in Bamboo Specs

I have been trying to create a bamboo.yaml that both creates new plan branches for pull requests and plan branches for all release/.* branches.

Is it possible to create a specification that has different integration for different plan branches?


branches:
    create:
        for-new-branch: release/.*
    delete:
        after-deleted-days: 14
        after-inactive-days: 14

 

branches: 
    createfor-pull-request
    
integration:
       
merge-from${bamboo.repository.pr.targetBranch}
        
push-on-successfalse
    link-to-jira: true
    

 

I don't want the release branches to merge with anything when built but plan branches from PRs should always be merged with the target branch.

1 answer

0 votes
Charlie Misonne Community Leader Nov 12, 2020

Hi Andreas

I'm looking for the same thing. Did you find any solution?

I never did. We reverted back and are not using specs anymore.

Charlie Misonne Community Leader Nov 12, 2020

Oh ok. After digging deeper today I found Bamboo 7.1 supports branch overriding for several things including branch-config -> integration.

https://docs.atlassian.com/bamboo-specs-docs/7.1.4/specs.html?yaml#overriding-branch-settings-using-bamboo-specs

I have to update to Bamboo 7.1 so I haven't tested yet.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center is here!

G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...

501 views 1 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you