From: Robin Wittler Date: Wed, 7 Sep 2011 09:33:00 +0000 (+0200) Subject: fix global error X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f6d4f034e90997128ca4f6e544c5fd467f0b99e8;p=profitbricks%2Fjenkins-build-scripts.git fix global error --- diff --git a/build.py b/build.py index e1f86b5..f9ba9b8 100755 --- a/build.py +++ b/build.py @@ -104,6 +104,7 @@ logger.setLevel(logging.DEBUG) def send_email(result): smtp = smtplib.SMTP(SMTP_SERVER) if result == SMTP_BUILD_ERROR: + global SMTP_TEXT SMTP_TEXT += '\nThe filesystem path is: %s' %(GIT_TARGET_WORKSPACE) msg = ( 'From: %s\n' %(SMTP_FROM) + diff --git a/lib/git_buildpackage.py b/lib/git_buildpackage.py index fb874b7..b54c6f0 100644 --- a/lib/git_buildpackage.py +++ b/lib/git_buildpackage.py @@ -61,8 +61,7 @@ class GitBuildPackage(object): # '%s returned with %s. Output was: %s' # %(' '.join(cmd), ret, error_str) # ) - return False - return True + return ret # vim: autoindent smartindent tabstop=4 expandtab shiftwidth=4 softtabstop=4 nu enc=utf-8 cinwords=if,elif,else,for,while,try,except,finally,def,class