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
Community moderators have prevented the ability to post new answers.