I am looking at "trying" to streamline my bamboo-spec repo and want to do the following
---
version: 2
deployment:
name: My deployment
source-plan: PLAN-KEY
release-naming:
next-version-name: release-1.0
applies-to-branches: true
auto-increment: true
auto-increment-variables:
- quickCompileMavenGoals.experimental
environments:
- QA
QA:
tasks:
- clean
- artifact-download:
destination: /workdir
- script:
- echo 'hello world'
- echo "I’m done"
---
version: 2
deployment:
name: My deployment
deployment-permissions:
- users:
- local-admin
- remote-admin
groups:
- bamboo-remote-users
permissions:
- view
- edit
However i am getting error
23-Feb-2023 16:53:25 Bamboo YAML import failed: Invalid format of the YAML file: expected a single document in the stream 23-Feb-2023 16:53:25 in 'reader', line 2, column 1: 23-Feb-2023 16:53:25 !include 'BUILD/ServiceA_Build.yml- ... 23-Feb-2023 16:53:25 ^ 23-Feb-2023 16:53:25 but found another document 23-Feb-2023 16:53:25 in 'reader', line 3, column 1: 23-Feb-2023 16:53:25 --- 23-Feb-2023 16:53:25 ^
bamboo-specs
|- bamboo.yml
|- build.yml
|- deployment.yml
|- COMMON
|- DotNet_build-task.yml
|- BUILD
|- ServiceA_Build.yml
|- ServiceB_Build.yml
|- DEPLOYMENT
|- ServiceA_deployment.yml
|- ServiceB_deployment.yml
bamboo.yml
---
!include 'build.yml'
---
!include 'deployment.yml'
build.yml
---
!include 'BUILD/ServiceA_Build.yml'
---
!include 'BUILD/ServiceB_Build.yml'
deployment.yml
---
!include 'BUILD/ServiceA_deployment.yml'
---
!include 'BUILD/ServiceB_deployment.yml'
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.