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,559,695
Community Members
 
Community Events
185
Community Groups

bamboo spec in specific branch

Good morning

I have a problem with Bamboo specs YAML.
The existing documentation is quite poor and I'm trying to make a certain plan run only if there is a commit on a specific branch (for example development) because if the commit runs on another (master) I want to launch a different plan.

How can I do it?

Thank you very much.

1 answer

0 votes
Steve Thornhill
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.
Oct 04, 2018

Have you defined a separate section for that branch in the yaml file?

 

  branches:
    staging:
      - step:

Hi Steve.

 

Thanks for your reply.

I dont know how to do it. Could you provide me a little bit example?

 

Thanks a lot

Steve Thornhill
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.
Oct 04, 2018

Something along the lines of this will get you started

pipelines:
default:
-step:
name: Default stuff for non named branches
script:
- npm install
- npm test
branches:
branch1:
-step:
name: Run on Branch 1
script:
- echo "Running this on Branch 1"
- npm install
- npm test
branch2:
-step:
name: Run on Branch 2
script:
- echo "Running this on Branch 2"
- npm install
- npm test

Hi Steve, do you know how the above would look like in Java Specs? I am trying to find an example or the right commands with the Specs API but nothing yet.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events