]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix debian_build
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:10:55 +0000 (11:10 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:10:55 +0000 (11:10 +0200)
debian_build.py

index 34c8999e74b250076ea4c7b96a176082ff4f405c..cfb0e20a0f779ab9733540c26e24faa74baede19 100755 (executable)
@@ -39,7 +39,7 @@ from multiprocessing import cpu_count
 from ConfigParser import SafeConfigParser
 
 # from common_code
-logger = logger_init()
+logger = logger_init(__file__)
 
 # local constants
 DEFAULT_PARALLEL_JOBS = cpu_count() + 1
@@ -128,7 +128,7 @@ def dput_package_upload(changes_path):
         logger.debug('Exit status: %d' %( result ))
 
         if not result:
-            raise Exception(message)
+            raise Exception(result.stdout)
 
     except Exception, error:
         logger.exception('%s' %(error))