In Jenkins plugin extensible-choice-parameter , under a name "Release" we have some choices, need an api to fetch all the choices. so that for automation we could could validat ethe choices and could have a optimized automation to send request to jenkins.
As of now i have found a workaround - have written the below script and i am executing this on my jenkins server from my automation controller using paramiko to get the list of available choices.
Please let me know if there is any api present to fetch the choices under different name already available ?
while read -r line;
if [[ $len -gt 0 && $line == "<string></string>" ]];
then echo $release_tag; exit 0;
elif [[ $line == "<string></string>" ]];
len=`expr $len + 1`;
else if [[ $start -eq 0 ]];
len=`expr $len + 1`
done < "$filename"