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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

YAML code to skip branch based builds

Hi, 

I am using Bamboo Specs YAML in the repository to build the plan for my repository.  However whenever I create a branch, Bamboo builds the job. 

Is there a way I can have a specify not build for any branches and run it only for master? (which is what I configured in linked repository)

 

How can I do this in yaml configuration or even any setting anywhere else. 

 

I could think of two ways: 

1. One way I could achieve this is to write a shell script and skip the code if branch is not master (it still executes)

2. have few things in environment variables and use them as parameters, so master build does always things in production and branches will be using a different configuration.

 

 

 

 

 

 

 

1 answer

0 votes
Foong Atlassian Team Feb 26, 2019

Feature request https://jira.atlassian.com/browse/BAM-20320

Use Bamboo Java Specs that have Automatic Branch Detection configuration instead of Bamboo YAML Specs.

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

918 views 4 7
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