you can use direct assigantion to currentBuild result variable: currentBuild.result = 'FAILURE'
avaiable value are (not sure I got them all): 'UNSTABLE', 'SUCCESS', 'FAILURE', 'ABORTED', 'NOT_BUILT' -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cef164ac-0ecd-4b50-b8af-512d8991e07e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.