diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index 1e29452ab..a2f77225e 100644
--- a/jenkins_jobs/modules/publishers.py
+++ b/jenkins_jobs/modules/publishers.py
@@ -6635,6 +6635,12 @@ def slack(registry, xml_parent, data):
:arg bool notify-repeated-failure: Send notification when job fails
successively (previous build was also a failure) (>=2.0).
(default false)
+ :arg bool notify-regression: Send notification when number of failed tests
+ increased or the failed tests are different than previous build
+ (>=2.2). (default false)
+ :arg bool include-failed-tests: includes all failed tests when some tests
+ failed. does nothing if no failed tests were found (>=2.2).
+ (default false)
:arg bool include-test-summary: Include the test summary (>=2.0).
(default false)
:arg str commit-info-choice: What commit information to include into
@@ -6699,8 +6705,10 @@ def slack(registry, xml_parent, data):
('notify-unstable', 'notifyUnstable', False),
('notify-failure', 'notifyFailure', False),
('notify-back-to-normal', 'notifyBackToNormal', False),
+ ('notify-regression', 'notifyRegression', False),
('notify-repeated-failure', 'notifyRepeatedFailure', False),
('include-test-summary', 'includeTestSummary', False),
+ ('include-failed-tests', 'includeFailedTests', False),
('commit-info-choice', 'commitInfoChoice', 'NONE'),
('include-custom-message', 'includeCustomMessage', False),
('custom-message', 'customMessage', ''),
diff --git a/tests/publishers/fixtures/slack003.xml b/tests/publishers/fixtures/slack003.xml
index 518a37773..026be446d 100644
--- a/tests/publishers/fixtures/slack003.xml
+++ b/tests/publishers/fixtures/slack003.xml
@@ -14,8 +14,10 @@
false
false
false
+ false
false
false
+ false
NONE
false
diff --git a/tests/publishers/fixtures/slack004.xml b/tests/publishers/fixtures/slack004.xml
index 13b23b54a..73eb8b682 100644
--- a/tests/publishers/fixtures/slack004.xml
+++ b/tests/publishers/fixtures/slack004.xml
@@ -14,8 +14,10 @@
true
true
true
+ true
true
true
+ true
AUTHORS_AND_TITLES
true
A custom message.
diff --git a/tests/publishers/fixtures/slack004.yaml b/tests/publishers/fixtures/slack004.yaml
index bb7d8e603..bf4d9e1c3 100644
--- a/tests/publishers/fixtures/slack004.yaml
+++ b/tests/publishers/fixtures/slack004.yaml
@@ -13,7 +13,9 @@ publishers:
notify-failure: True
notify-back-to-normal: True
notify-repeated-failure: True
+ notify-regression: True
include-test-summary: True
+ include-failed-tests: True
commit-info-choice: 'AUTHORS_AND_TITLES'
include-custom-message: True
custom-message: 'A custom message.'