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

bamboo-specs with yaml file

Alexander Gorshtein May 11, 2020

Hello,

 

I am trying to make multiple deployment projects with YAML file, but i have error in configuration:

 

---
version: 2
deployment:
name: STATUS ########
source-plan: MARS-ROCKET
release-naming:
next-version-name: 0.${bamboo.buildNumber}

environments:
- DEV

DEV:
tasks:
- clean
- artifact-download:
destination: /
- script:
- echo "Hello World"


deployment:
name: RESTART ########
source-plan: MARS-ROCKET
release-naming:
next-version-name: 0.${bamboo.buildNumber}

environments:
- DEV

DEV:
tasks:
- clean
- artifact-download:
destination: /
- script:
- echo "Hello World"

 

can it be merged or? please advice

Thank you in advance

1 answer

1 accepted

1 vote
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2020

You need to split the file into documents like this:

---
version: 2
deployment:
name: STATUS ########
source-plan: MARS-ROCKET
release-naming:
next-version-name: 0.${bamboo.buildNumber}

environments:
- DEV

DEV:
tasks:
- clean
- artifact-download:
destination: /
- script:
- echo "Hello World"

---
version: 2
deployment:
name: RESTART ########
source-plan: MARS-ROCKET
release-naming:
next-version-name: 0.${bamboo.buildNumber}

environments:
- DEV

DEV:
tasks:
- clean
- artifact-download:
destination: /
- script:
- echo "Hello World"

...

Alexander Gorshtein May 12, 2020

thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events