]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
debian_build.py: correct build_failed
authorTobias von der Krone <tobias.vonderkrone@profitbricks.com>
Mon, 14 Oct 2013 10:51:20 +0000 (12:51 +0200)
committerTobias von der Krone <tobias.vonderkrone@profitbricks.com>
Mon, 14 Oct 2013 10:51:20 +0000 (12:51 +0200)
debian_build.py

index 3147810da2a21957d6f11d0873bbf00bb98af965..12df0c2327a2ec8e8768c13b2f12d500b1b2d171 100755 (executable)
@@ -520,7 +520,7 @@ export {gbp_env} FORCE_SHELL=TRUE
 
     # .. and finally handle the result
     if ret:
-        build_failed = False
+        build_failed = True
         logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret))
         figlet('Build failed')
         failed_message = 'package build has failed'
@@ -531,7 +531,7 @@ export {gbp_env} FORCE_SHELL=TRUE
         do_uploads = False
         no_uploads_cause = failed_message
     else:
-        build_failed = True
+        build_failed = False
         figlet('Build OK')
 
     #