Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo specification yaml include a task Edited

I am currently investigating the use of Bamboo-specs using yaml. As we have a few scripted tasks that are fairly similar for different jobs I wanted to separate the script from the rest of the spec file. However I am getting errors;

Bamboo YAML import failed: Document structure is incorrect: Run tests / tasks / [1]: Task must have its type defined as the only YAML property

Stucture of bamboo-specs.yaml;

---
version: 2
plan:
project-key: DDNAM
key: ATLUIR
name: Testing - ATL UI regression (experimental)
stages:
- Run all tests:
manual: false
final: false
jobs:
- Run tests
Run tests:
key: CT
tasks:
- checkout:
path: testing
force-clean-build: 'true'
- !include 'tasks/robot_run_chrome.yaml'
- !include 'tasks/robot_run_firefox.yaml'
......more config....

tasks/robot_run_chrome.yaml:

script: |
./scripts/ui-test-runner.sh -t "${bamboo_RobotFiles}" \
--variable browser:Chrome \
...some other variables....
--variable BambooBuildID:${bamboo.buildResultKey}
exit 0
workingDirectory: testing

 Can someone help me out on how to make these files work

 

We use Bamboo 7.1.1 (on premise)

 

---- UPDATE-----

Apparently the workingDirectory property caused an issue, if I remove it the task works.

However how can I add the workingDirectory to this script or is cd to folder the only option?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

490 views 5 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you