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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,341
Community Members
 
Community Events
176
Community Groups

Requirements in yaml bamboo specs

Hi! I am trying to create a yaml bamboo specs which will be require Docker and linux OS. (But for now focus on Docker)
Unfortunatelly, each of my attempts failed. I know I should be able to use exist capabilities from agents, so maybe somebody can tell me how to create that requirement in *yml file.

File looks that:

project:
key: XXXYYY
plan:
key: XXYY
name: build image

stages:
- jobs:
- scripts:
- echo 'Build docker image'
- docker build -t x-t .
requirements:
- Docker

But it doesn't work. I've got an information that no agent can run my job becouse of that requirements. But I know that many of agents has docker installed.
Example screen from capabilities from one of agent:
docker_capabilities.PNG

Could somebody can tell me why I cannot to run that yaml file with requirements? Maybe that requirement value should be written in another way?
Except of docker I want to require linux OS, so if you can tell me how to do that too it will be great. 

Thanks a lot


1 answer

0 votes
Jimmy Seddon Community Leader Mar 23, 2020

Hi @Bartłomiej_Jakubiec,

Welcome to the Community!

I struggle with the Bamboo YAML syntax myself.  If you check out the documentation:

https://docs.atlassian.com/bamboo-specs-docs/6.9.0/specs.html?yaml#requirements

You will see how Atlassian is recommending you format the syntax for requirements, which looks as if it's different than you have defined above.  I'd recommend experimenting with the definition until you get something that works for you.

I hope that helps!

-Jimmy

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events