Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the possible keys for task conditions: -variable: in bamboo spec yaml

Joel_st
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!
March 19, 2025

Working with bamboo 9.2 yaml specs. What are the possible conditions for a variable in yaml spec? "equals" work but "not equals" is invalid

1 answer

1 vote
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 20, 2025

Hello Joel,

Welcome to Atlassian community

You can use Not eqauls as well with below example. It would accept all the 5 conditions exists, not exists, equals, not equals, matches

  tasks:
- script:
interpreter: SHELL
scripts:
- echo "hello"
conditions:
- variable:
not-equals:
jira.version: 2.3
  tasks:
- script:
interpreter: SHELL
scripts:
- echo "hello"
conditions:
- variable:
matches:
jira.version: '2.3'

Let me know if this helps!

**please don't forget to Accept the answer if your query was answered**

Regards,

Shashank kumar

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events