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

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

Ren Fa Kay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2022

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