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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,960
Community Members
 
Community Events
176
Community Groups

How to change configuration using branches in yaml specs

Hi Team,

I want to change some parameters in my bamboo plan using branches.

For example:

I want to create Bamboo plan with different branches and each branch should have different job or task.

Is it possible to override some parameters using one yaml file configuration?

 

1 answer

0 votes
Eduardo A Atlassian Team Jul 11, 2022

Hello @Valerii , Welcome to Atlassian Community!

If you are using Bitbucket Server along with Bamboo, you can benefit from Enhanced Plan Branches:

Cheers,

 

Eduardo Alvarenga
Atlassian Support APAC 

Hi Eduardo Alvarenga,

Thank you for your response. So is it necessary to have new branch on git for new configuration BP?

Eduardo A Atlassian Team Jul 12, 2022

Hello @Valerii

Yes. Enhanced plan branches are linked to your Bitbucket repository branches.

Alternatively, if you don't want to use Git branches, you can have:

  • A single Bitbucket repository with your Bamboo specs code that will contain all your individual, independent Plans and their individual settings. Once Bamboo scans that repository, it will take action and apply the changes to every Plan it has a reference. Then, it is just a matter of creating multiple Plans and referencing your common code repository as a secondary repository for the code checkout tasks
  • Multiple Bitbucket repositories with individual Bamboo specs code that will only contain the details for that specific plan. Each Java Specs or YAML Specs code will need to be put on a different repository. Your common code repository can be added as a second repository to each Plan and be used for the different tasks

Choosing the best strategy will vary according to your development teams and if they agree to share or if they prefer having independent Bamboo specs structures.

 

Eduardo Alvarenga
Atlassian Support APAC 

Okay, so for example, here is my yaml spec configuration file:

image.png

In a "JIRA-custom-integration" bamboo branch I want to override only one parameter from Unit tests stage

requirements: NewGoodDocker

Everything else should be the same as in a master (default) branch.

How can I do it?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events