The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
# bamboo.yaml
---
!include 'planA.yaml'
---
!include 'planB.yaml'
# planA.yaml
---
version: 2
# ...
# planB.yaml
---
version: 2
# ...
Why isn't this working?
I'm having the same issue as well.
I want to have a separate file that contains a shared task in it, then include that file in a number of other bamboo.yml files.
It feels to me like the yaml stuff is half-baked- there are a ton of little issues like tasks not being properly configurable and what not.
I've come across this bug that might explain why the !include statement is not working:
https://jira.atlassian.com/browse/BAM-21510
Looks like if you have permissions defined in your sub-files, it will break.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.