---
project:
key: TEST
plan:
key: BYT
name: Bamboo Spec tutorial
stages:
- jobs:
- scripts:
- '#!/bin/bash'
- echo 'Going to slay the red dragon, in bash'
interpreter: shell
# Job's test parsers.
testParsers:
- type: junit
testResults: '**/junit/*.xml'
Bamboo YAML import failed: Invalid format of the YAML document: while parsing a block collection
31-Dec-1969 19:00:00 in 'string', line 15, column 13:
31-Dec-1969 19:00:00 - type: junit
31-Dec-1969 19:00:00 ^
31-Dec-1969 19:00:00 expected <block end>, but found Key
31-Dec-1969 19:00:00 in 'string', line 16, column 13:
31-Dec-1969 19:00:00 testResults: '**/junit/*.xml'
31-Dec-1969 19:00:00 ^
https://confluence.atlassian.com/bamboo0603/bamboo-specs-yaml-format-946020345.html
Hi Pierre-Luc
Your YAML indentation looks to be incorrect. Could you please remove the two extra spaces before the type definition and try again?
Ex.
project:
key: PROJ
plan:
key: BYT
name: Bamboo Spec tutorial
stages:
- jobs:
- scripts:
- '#!/bin/bash'
- echo 'Going to slay the red dragon, in bash '
interpreter: shell
# Job's test parsers.
testParsers:
- type: junit
testResults: '**/junit/*.xml'
I suggest you to use a YAML validation tool to check the code before committing it to the repo. (e.g. http://www.yamllint.com/)
thanks
I also Suggest you to use a YAML Validation tool like https://www.yamlonline.com . it's validate your YAML and also convert your YAML TO JSON or YAML TO XML and CSV so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.