Bamboo Spec - VS Code

Dave Attard
Contributor
March 16, 2023

Has anyone looked at writing a VS Code extension that can parse and validate Bamboo-spec yml?

The Yml validator cant handle includes so it makes it difficult to test whether the entire spec will be successful or not.

If there is nothing out there for this.. Is there a functional spec of the validations that occur? and i will write one

1 answer

1 accepted

1 vote
Answer accepted
Dave Attard
Contributor
March 19, 2023

I have had a look deeper into this, and have found that you can send you bamboo.yml file to 

  • /rest/api/latest/import/plan/validate/{repoId}

 

so i ended up writing a quick parser to consolidate all the content and includes into a single file and then sending it to the above url to validate, as an action on commit
Note: the repo id can be found using the below endpoint, and then just search for one that has reeEnabled = true
  • /rest/api/latest/repository?searchTerm=

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.2.1
TAGS
AUG Leaders

Atlassian Community Events