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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.