Bamboo Specs YAML format

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Bamboo Specs YAML allows for a single plan definition in a single YAML file and accepts the following format:


---
project:
  key: DRAGON
  plan:
    key: SLAYER
    name: Dragon Slayer Quest
# List of plan's stages
stages:
	#List of stage's jobs
  - jobs:
	  # Scripts which are going to be executed within this job
      - scripts:
          - echo 'Going to kill the red dragon, watch me'
          - sleep 1
          - echo 'Nailed it'
	  # Job's requirements. Only matching type 'exists' is supported
        requirements:
          - isDragonLazy
      # Job's artifacts. All artifacts are shared ones.
        artifacts:
          - name: Red dragon's head
            path: dragon/red/head
	  # Job's test parsers.
        testParsers:
		   - type: mocha
  			 testResults: '**/mocha/*.json'
		   - type: junit
		  	 testResults: '**/junit/*.xml' 
...

Bamboo YAML Specs allows for configuring test parsers with a simplified format. You can use one of the following configurations: 

testParsers:
  - mocha
  - junit
testParsers:
  - type: mocha
    testResults: '**/mocha/*.json'
  - type: junit
    testResults: '**/junit/*.xml'
testParsers:
  - type: mocha
    testResults:
      - xxx.json
  - type: junit
    testResults:
      - '**/test-reports/*.xml'
      - '**/custom-test-reports/*.xml'




Last modified on Dec 20, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.