Hello,
I have a bamboo plan that generates builds with two labels, version and country. Each label can have different values.
For example, I have this two builds:
One contains "version=1_8_1" and "country=us"
Another one contains "version=1_8_1" and "country=fr"
I need to find the build number of the one matching version 1_8_1 and country fr, but I can't figure out how to match by both values
"${url}/rest/api/latest/result/${PROJECT}-${PLAN}.json?expand=results&start-index=0&label=version=1_8_1&label=country=fr" | jq -r .results.result[].buildNumber
24
23
"${url}/rest/api/latest/result/${PROJECT}-${PLAN}.json?expand=results&start-index=0&label=version=1_8_1,country=fr" | jq -r .results.result[].buildNumber
24
23
"${url}/rest/api/latest/result/${PROJECT}-${PLAN}.json?expand=results&start-index=0&label=version=1_8_1&country=fr" | jq -r .results.result[].buildNumber
24
23
If I only try to match the country label it works as expected.
"${url}/rest/api/latest/result/${PROJECT}-${PLAN}.json?expand=results&start-index=0&label=country=fr" | jq -r .results.result[].buildNumber
23
What am I doing wrong? How should the request be formed?
Cheers.