You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Requirement : Create a Test Automation pipeline and automatically create Jira tickets on failure
Setup : A maven based test automation project
TASK 1 : Check out repository - OK
Task 2 : Script --> Maven commands
mvn test
$bamboo_testResults=$?
line 2 throws an error. I know this is an existing issue/lack of feature on bamboo while working with variables. I do not also have access to inject variable plug in on our cloud.
Question : How do I ascertain the test results and pass it on to next task ?
TASK 3 : Script --> To create jira tickets based on $bamboo_testResults
But since the variable doesn't get the value assigned this is always executed as a default '0' case