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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,613
Community Members
 
Community Events
185
Community Groups

Bamboo Specs bamboo.yaml does not like include

Edited

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?

2 answers

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.

We are having exactly the same issue as you, @BX.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events