I was trying the get the last successful build that was promoted (promotion 
plugin) into a specific environment out of Jenkins, but not sure how. 
 Gain, not looking for Build Number, but for the build# that was promoted. 
 Ran into some success using the xml/api, but this quickly ended as it 
doesn't seem i have a way of extracting the most recent in the build.  

http://JENKINS/job/APPLICATION/promotion/process/QA_ENVIRONMENT/api/xml?depth=1&xpath=/*/build[2]/target/number
 
was promising, but can't set the most recent buld number.  The xml format 
seems to change and would have to not do xpath read all and then sort by 
date somehow.  Not good to do.

The end result is to put the # on a wiki page that has tons of other 
information, so linking/iframes not really a good thing, would like to just 
get the result from a GET and display it on a page.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1b1db073-6905-43d0-b1c3-7f33b709139f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to