From c2f72651d4f7df5bf74e5eece06e776d4d9f7ce7 Mon Sep 17 00:00:00 2001 From: Tomas Bezdek Date: Wed, 9 Mar 2016 14:49:44 +0000 Subject: [PATCH] slack notifications on repeated failure Change-Id: I248f279fb30865641c64db260cae9e2f95f4e9f7 --- jenkins_jobs/modules/properties.py | 3 +++ tests/properties/fixtures/slack001.xml | 1 + tests/properties/fixtures/slack002.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/jenkins_jobs/modules/properties.py b/jenkins_jobs/modules/properties.py index 19a0a003d..753095154 100644 --- a/jenkins_jobs/modules/properties.py +++ b/jenkins_jobs/modules/properties.py @@ -656,6 +656,8 @@ def slack(parser, xml_parent, data): (default: False) :arg bool notifiy-back-to-normal: Send notification when job is succeeding again after being unstable or failed. (default: False) + :arg bool 'notify-repeated-failure': Send notification when job is + still failing after last failure. (default: False) :arg bool include-test-summary: Include the test summary. (default: False) :arg bool include-custom-message: Include a custom message into the @@ -683,6 +685,7 @@ def slack(parser, xml_parent, data): ('notify-unstable', 'notifyUnstable', False), ('notify-failure', 'notifyFailure', False), ('notify-back-to-normal', 'notifyBackToNormal', False), + ('notify-repeated-failure', 'notifyRepeatedFailure', False), ('include-test-summary', 'includeTestSummary', False), ('include-custom-message', 'includeCustomMessage', False), ('custom-message', 'customMessage', ''), diff --git a/tests/properties/fixtures/slack001.xml b/tests/properties/fixtures/slack001.xml index 000795e74..4436bd9f9 100644 --- a/tests/properties/fixtures/slack001.xml +++ b/tests/properties/fixtures/slack001.xml @@ -9,6 +9,7 @@ false false false + false false false diff --git a/tests/properties/fixtures/slack002.xml b/tests/properties/fixtures/slack002.xml index 492b78945..31ae867be 100644 --- a/tests/properties/fixtures/slack002.xml +++ b/tests/properties/fixtures/slack002.xml @@ -9,6 +9,7 @@ false false false + false false true Custom foo message