Hi Zippo, did you manage to solve this? I'm needing to get the previous promoted build number too. Thanks Melissa
On Tuesday, 28 April 2015 18:37:50 UTC+2, zippo7061 wrote: > > 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/d3b614ee-6454-4fab-bbeb-df3f8d07d712%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
