user2137817
user2137817

Reputation: 1853

Bamboo specs YAML issue

I'm trying to build a bamboo specs yaml but I'm having some weird errors which have messages that are not helping much. I followed the documentation for it here but still not working.

So I have bamboo 7.2.4 and I'm trying to create a stage

version:2

    stages:
     - run tests:
            jobs:
              - Test
    Test:
      tasks:
        - script:whatever

When running this I get

Bamboo YAML import failed: Document structure is incorrect: Tests: Property is required.

No clue what that means nor why it's happening

Upvotes: 0

Views: 4560

Answers (1)

Anuradha Fernando
Anuradha Fernando

Reputation: 1157

Bamboo YAML specs are very difficult to troubleshoot. This is one disadvantage of YAML specs when compared to Java specs. Looks like you are missing some key and essential tags in your example code. Can you re-format as below and see?

First, manually create a project (or use an existing project) but make sure to update the project-key by replacing <MYKEY> below,

---
version:2
plan:
  project-key: <MYKEY>
  key: MYPLN
  name: My Plan

stages:
  - run tests:
     jobs:
       - Test

Test:
  key: JB1
  tasks:
  - script:
    - echo 'My Plan'

Upvotes: 3

Related Questions