i asked this question how do i get the latest build in jenkns with a specified parameter, and the solutions is
http://localhost:8080/job/MyJenkinsJob/api/xml?tree=builds[actions[parameters[value]],number]&xpath=//build[action[parameter[value="MyParameterValue"]]]/number&wrapper=list
however this would return multiple build numbers, but i only want the latest (one build number only)
<list><number>49</number><number>48</number></list>
I tried several variation with xpath and it didnt work