diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index 6c079ed9b..c9162965f 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -7402,6 +7402,8 @@ def slack(registry, xml_parent, data): (>=2.0). (default false) :arg bool notify-failure: Send notification when job fails for the first time (previous build was a success) (>=2.0). (default false) + :arg bool notify-every-failure: Send notification everytime a job fails + (>=2.23). (default false) :arg bool notify-back-to-normal: Send notification when job is succeeding again after being unstable or failed (>=2.0). (default false) :arg bool notify-repeated-failure: Send notification when job fails @@ -7478,6 +7480,7 @@ def _add_xml(elem, name, value=""): ("notify-not-built", "notifyNotBuilt", False), ("notify-unstable", "notifyUnstable", False), ("notify-failure", "notifyFailure", False), + ("notify-every-failure", "notifyEveryFailure", False), ("notify-back-to-normal", "notifyBackToNormal", False), ("notify-regression", "notifyRegression", False), ("notify-repeated-failure", "notifyRepeatedFailure", False), diff --git a/tests/publishers/fixtures/slack003.xml b/tests/publishers/fixtures/slack003.xml index 026be446d..bb4480e8d 100644 --- a/tests/publishers/fixtures/slack003.xml +++ b/tests/publishers/fixtures/slack003.xml @@ -13,6 +13,7 @@ false false false + false false false false diff --git a/tests/publishers/fixtures/slack004.xml b/tests/publishers/fixtures/slack004.xml index 73eb8b682..425b33701 100644 --- a/tests/publishers/fixtures/slack004.xml +++ b/tests/publishers/fixtures/slack004.xml @@ -13,6 +13,7 @@ true true true + true true true true diff --git a/tests/publishers/fixtures/slack004.yaml b/tests/publishers/fixtures/slack004.yaml index bf4d9e1c3..d4a36e045 100644 --- a/tests/publishers/fixtures/slack004.yaml +++ b/tests/publishers/fixtures/slack004.yaml @@ -11,6 +11,7 @@ publishers: notify-not-built: True notify-unstable: True notify-failure: True + notify-every-failure: True notify-back-to-normal: True notify-repeated-failure: True notify-regression: True