Take care the currentBuild.result will be unset if successful up to that point. There's no 'STABLE'
'SUCCESS' 'UNSTABLE' 'FAILURE' 'ABORTED' 'NOT_BUILT' http://javadoc.jenkins-ci.org/hudson/model/Result.html -- 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/81762c79-b462-4839-b7b3-13eea7ef884c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
