Hi all,
I've started to play with bamboo yaml specs. It's very promising, but I found some issues. One of them the `
I try to include multiple jobs from a file. I have jobs/all_jobs_in_one.yaml:
job1:
....
....
job2:
....
....
and I try to include it to my bamboo.yaml like this:
---
version: 2
plan:
...
...
stages:
...
...
!include 'jobs/all_jobs_in_one.yaml'
but I got the following error:
01-Jan-1970 01:00:00 Bamboo YAML import failed: Invalid format of the YAML file: while scanning a simple key
01-Jan-1970 01:00:00 in 'reader', line 37, column 1:
01-Jan-1970 01:00:00 !include 'jobs/all_jobs_in_one.yaml'
01-Jan-1970 01:00:00 ^
01-Jan-1970 01:00:00 could not find expected ':'
01-Jan-1970 01:00:00 in 'reader', line 39, column 1:
01-Jan-1970 01:00:00
01-Jan-1970 01:00:00 ^
01-Jan-1970 01:00:00
(39 is the very last line)
If I don't use the include, but copy&paste the content of the all_jobs_in_one.yaml into the bamboo.yaml it works perfectly.
In the example of the include they use this format:
job1: !include job1.yaml
job2: !include job2.yaml
which works fine for me too, but what if I want to include more?!
The doc says about include: "This tag is flexible, and it can be used anywhere in the file, as long as it follows the YAML format."
Is it a bug or I use it on a wrong way?