For Freestyle jobs at least, it's manager.build.parent.lastStableBuild.number 
and manager.build.parent.lastFailedBuild.number.

Note that this only works like this in Groovy Postbuild Plugin, which has no 
relation to Groovy Plugin.

On 17.01.2014, at 10:56, Maneesh M P <[email protected]> wrote:

> I am able to get the current build number
> 
> currentBuildNumber = manager.build.number
> 
> How to get the lastStableBuild, lastFaledBuildNumber  ?
> 
> Thanks,
> M
> 
> -- 
> 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/groups/opt_out.

-- 
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/groups/opt_out.

Reply via email to