]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add additiomnal logging
authorRobin Wittler <robin.wittler@profitbricks.com>
Wed, 7 Sep 2011 11:51:49 +0000 (13:51 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Wed, 7 Sep 2011 11:51:49 +0000 (13:51 +0200)
build.py

index d5c52b4de8043cad0a95492eaf819543423d4ee6..9a18d1f10e5197573e61ed9173795de83caccaac 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -109,10 +109,11 @@ def send_email(result):
     msg = (
             'From: %s\n' %(SMTP_FROM) +
             'To: %s\n' %(GIT_COMMITTER_EMAIL) +
-            'Subject: %s\n' %(SMTP_SUBJECT %(GIT_UPSTREAM_BRANCH, BUILD_NUMBER,
+            'Subject: %s\n' %(SMTP_SUBJECT %(GIT_DEBIAN_BRANCH, BUILD_NUMBER,
                 result)) +
-            '%s\n' %(SMTP_TEXT %(GIT_UPSTREAM_BRANCH, BUILD_NUMBER, result))
+            '%s\n' %(SMTP_TEXT %(GIT_DEBIAN_BRANCH, BUILD_NUMBER, result))
     )
+    logger.info('Sending this message: %s', msg)
     smtp.sendmail(SMTP_FROM, GIT_COMMITTER_EMAIL, msg)
     smtp.quit()