]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix wrong exit handling
authorRobin Wittler <robin.wittler@profitbricks.com>
Wed, 7 Sep 2011 09:52:52 +0000 (11:52 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Wed, 7 Sep 2011 09:52:52 +0000 (11:52 +0200)
build.py

index a6647500da8acab23c19fbdf55342511c8dbb95c..4a69afbc432b58fc0ad8ba7648ce378c7be7d3d2 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -424,16 +424,16 @@ if __name__ == '__main__':
         exit_error()
     else:
         logger.debug('git-buildpackage executed successfully')
-    if not ret:
+#    if not ret:
         build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version))
         try:
           fh = open(build_log, 'r')
-          logger.info('%s' % (fh.read()))
+          logger.debug('Output of the deb build: %s' % (fh.read()))
           fh.close()
        except:
          pass
-        exit_error()
-    else:
+#        exit_error()
+#    else:
         try:
             create_dput_cfg()
             changes_file =  os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))