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,362,963
Community Members
 
Community Events
168
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

Atlassian Community Events