]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add more logging stuff
authorRobin Wittler <robin.wittler@profitbricks.com>
Thu, 4 Aug 2011 12:19:40 +0000 (14:19 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Thu, 4 Aug 2011 12:19:40 +0000 (14:19 +0200)
testgit_build.py

index 03f4668eacc5a57591bf2610ca25c9204e68192f..99384b8dd97d40abb38fee6eca8f1a875256a91b 100755 (executable)
@@ -133,12 +133,12 @@ def remove_git_target_workspace():
             )
             logger.debug(_str)
             raise Exception(_str)
-        return cmdobj
     except Exception, error:
         logger.exception(error)
         raise
     else:
         logger.info('deleted %s' %(GIT_TARGET_WORKSPACE))
+        return cmdobj
 
 def exit_ok():
     send_email(SMTP_BUILD_SUCCESS)
@@ -191,7 +191,7 @@ if __name__ == '__main__':
                 )
         else:
             raise Exception('No git_committer_email found')
-    
+
     gbp = git_buildpackage.GitBuildPackage(
             upstream_branch=GIT_UPSTREAM_BRANCH,
             debian_branch=GIT_DEBIAN_BRANCH,
@@ -205,6 +205,7 @@ if __name__ == '__main__':
             'This is the return value of git-buildpackage: %s'
             %(ret)
     )
+    exit_ok()
 
 #class GitBuildPackage(object):
 #        def __init__(self, upstream_branch=None,