If you use a groovy template, this would be very easy.
def theBuild = Jenkins.instance.getItem('MyBuild').lastSuccessfulBuild
// do stuff here to access changeNumber from the build object
On Thu, Apr 17, 2014 at 5:36 AM, Niksan <[email protected]> wrote:
> I'm currently trying to get a change number from the last successful
> build, I can do this as a URL but I'm wondering if there's a more simple
> approach to getting this info to make it part of an email-ext mail so I can
> provide the last successful changelist along with the broken one.
>
>
>
> http://localhost:8080/job/MyBuild/lastSuccessfulBuild/api/xml?xpath=//changeNumber/text()
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>
--
Website: http://earl-of-code.com
--
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].
For more options, visit https://groups.google.com/d/optout.