While I was waiting for a reply I started googling like a nut job, doesn't
help it's my first day with Java either. :) However I managed to rustle up
something up if it's of any use to anyone else.
Cheers.
import hudson.model.*
def lastWorkingBuildCS = build.parent.getLastStableBuild().getCh
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 wrote:
> I'm currently trying to get a change number from the last
I should probably add that I'm running on a Windows machine if that makes
any difference.
--
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 jenkinsci-users+unsub
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://loc