Bamboo YAML import failed: Document structure is incorrect

Rene Kempen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

I am trying to add yaml specs in my repo to BamBoo but getting this error:

Bamboo YAML import failed: Document structure is incorrect: Found following unused properties: Build / variables, Publish / variables.

I have in my repo this folder structure:

bamboo-specs/
                         bamboo.yaml
                         Build.yaml
                         Publish.yaml

I have added screenshots of these 3 yaml files.

What is wrong here?

bamboo-yaml.pngBuild-yaml.pngPublish-yaml.png

1 answer

0 votes
Venkata Sateesh Pentela
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2025

Hi Rene,

Welcome to the Atlassian Community.

You can try removing below lines from Build.yaml and Publish.yaml.

---

version: 2

Also variables tag should be defined at the plan level and not at the job level. Please move that out of Build.yaml and add it to bamboo.yaml.

We also have a knowledge base article to address the YAML specs format issues when !include is used. Please refer to that for further reference:

Regards,
Venkata Sateesh Pentela
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events