groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Matz <guym...@gmail.com>
Subject foo() || return false ?
Date Mon, 17 Jul 2017 20:18:00 GMT
Hello!
I'm trying to do the following in scriptler (Jenkins), but I can't get this
to work:
doSomething() || return false

This fails in scripler with:

Execution of script [promoteBuild.groovy] failed -
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
Script1.groovy: 51: unexpected token: return @ line 51, column 85.
   doSomething() || return fal


Anyone know why this seemingly valid groovy does not work in scriptler?


Thanks!


P.S. - I asked the jenkins community but no one responded

Mime
View raw message