From: Tim Rozet Date: Fri, 4 Aug 2017 01:39:22 +0000 (-0400) Subject: Apex: fixes groovy script X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F38715%2F1;p=releng.git Apex: fixes groovy script The script had double quotes which will try to interpret dollar sign as a templated variable. Switching to literal string. Change-Id: Ic8d09dc6c862b9db95bf9d1277f562e5bce02fc9 Signed-off-by: Tim Rozet --- diff --git a/jjb/apex/update-build-result.groovy b/jjb/apex/update-build-result.groovy index 1679582c8..9edca6b6b 100644 --- a/jjb/apex/update-build-result.groovy +++ b/jjb/apex/update-build-result.groovy @@ -1,5 +1,5 @@ import hudson.model.* -if (manager.logContains("^.*apex-deploy-baremetal.*SUCCESS$") +if (manager.logContains('^.*apex-deploy-baremetal.*SUCCESS$') && manager.build.@result == hudson.model.Result.FAILURE) { manager.build.@result = hudson.model.Result.UNSTABLE }