From 0375cdb15bddfd88c7560b4bbfe37d382add69fd Mon Sep 17 00:00:00 2001 From: SoonKyu Park Date: Fri, 11 Nov 2016 17:00:05 +0900 Subject: [PATCH] jenkins job 'Builder' fails if there is a 'failed' result in OBS build results Change-Id: Ib3233dd7d22a701bbeb04cf8a0ab2b396774f030 --- build-package | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-package b/build-package index 9e4c968..207db69 100755 --- a/build-package +++ b/build-package @@ -344,6 +344,10 @@ def build(apiurl, project, package, timeout): print 'waiting for %s: %s' % (package, splitted[1:]) + if 'failed' in splitted[1:]: + print "OBS build failed in project=%s package=%s" %(project, package) + return 1 + if not statuses: return 0 -- 2.7.4