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