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

How to have different build Job for different branch for Bamboo Pipe

I have been getting this error:

Document structure is incorrect: Found following unused properties: Build

And i get the same error when i ran it on my feature branch asking unused properties : Development

Simplified snipplet code


---

version: 2
plan:
project-key: TST
key: TEST
name: pipeline

# development branch pipeline
stages:
- Development Pipeline:
manual: false
final: false
jobs:
- Development

branch-overrides:
# Feature Branch or Hotfix
-
^(?!.*development|master).*:
stages:
- Build Pipeline:
manual: false
final: false
jobs:
- Build

Build:
key: BU
tasks:
- script: |
#!/bin/bash
# Translate
echo Build

Development:
key: DE
tasks:
- script: |
#!/bin/bash
# Translate
echo Development


 

It is asking me to make use of all job in the yaml which i want to be able run different set of CI/CD based on branch name. What is the recommended way of doing so?

 

*might have indentation error while copying the original code but rest assured that its not yaml format issue

 

Thank you in advance

 

Ren Fa

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events