Mwalker has submitted this change and it was merged.

Change subject: Make jenkins job fail when exception is caught
......................................................................


Make jenkins job fail when exception is caught

We have to return something non zero for it to know it didn't work

Change-Id: Ic4bc525fa660f03b8a2bd64058849d861e5c11ee
---
M FundraiserStatisticsGen/fundstatgen.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Adamw: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/FundraiserStatisticsGen/fundstatgen.py 
b/FundraiserStatisticsGen/fundstatgen.py
index 1ab437e..3c4f2cb 100644
--- a/FundraiserStatisticsGen/fundstatgen.py
+++ b/FundraiserStatisticsGen/fundstatgen.py
@@ -290,3 +290,4 @@
         main()
     except Exception as ex:
         logging.exception('Unexpected exception! Death is me.')
+        exit(1)

-- 
To view, visit https://gerrit.wikimedia.org/r/133634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic4bc525fa660f03b8a2bd64058849d861e5c11ee
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/tools
Gerrit-Branch: master
Gerrit-Owner: Mwalker <mwal...@wikimedia.org>
Gerrit-Reviewer: Adamw <awi...@wikimedia.org>
Gerrit-Reviewer: Mwalker <mwal...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to