bamboo.yaml:
---
version: 2
!include 'PlanName/spec.yml'
I have also tried moving 'spec.yml' to the same directory:
---
version: 2
!include 'spec.yml'
Both scenarios give me:
Bamboo YAML import failed: Invalid format of the YAML file: while scanning a simple key in 'reader', ... !include 'PlanName/spec.yml'
^
could not find expected ':' in 'reader' ... 'PlanName/spec.yml'
^
(The carats didn't format properly, but the first one is under the exclamation point of "!include 'PlanName/spec.yml'", and the second carat is underneath the end of ".../spec.yml'")
The documentation shows that what I am doing is the correct way to implement the '!include' statement in the 'bamboo.yaml' file:
Using your main YAML file to include every other plan
<span># bamboo.yaml</span>
<span>---</span>
<span>!include</span> <span>'</span><span>planA.yaml'</span>
<span>---</span>
<span>!include</span> <span>'</span><span>planB.yaml'</span>
<span># planA.yaml</span>
<span>---</span>
<span>version</span><span>:</span> <span>2</span>
<span># ...</span>
<span># planB.yaml</span>
<span>---</span>
<span>version</span><span>:</span> <span>2</span>
<span># ...</span>
Why isn't this working?