Browse Source

Merge "Add Slack 2.2 new settings"

tags/2.0.7
Zuul 1 year ago
parent
commit
30068062b2

+ 8
- 0
jenkins_jobs/modules/publishers.py View File

@@ -6635,6 +6635,12 @@ def slack(registry, xml_parent, data):
6635 6635
     :arg bool notify-repeated-failure: Send notification when job fails
6636 6636
         successively (previous build was also a failure) (>=2.0).
6637 6637
         (default false)
6638
+    :arg bool notify-regression: Send notification when number of failed tests
6639
+        increased or the failed tests are different than previous build
6640
+        (>=2.2). (default false)
6641
+    :arg bool include-failed-tests: includes all failed tests when some tests
6642
+        failed. does nothing if no failed tests were found (>=2.2).
6643
+        (default false)
6638 6644
     :arg bool include-test-summary: Include the test summary (>=2.0).
6639 6645
         (default false)
6640 6646
     :arg str commit-info-choice: What commit information to include into
@@ -6699,8 +6705,10 @@ def slack(registry, xml_parent, data):
6699 6705
         ('notify-unstable', 'notifyUnstable', False),
6700 6706
         ('notify-failure', 'notifyFailure', False),
6701 6707
         ('notify-back-to-normal', 'notifyBackToNormal', False),
6708
+        ('notify-regression', 'notifyRegression', False),
6702 6709
         ('notify-repeated-failure', 'notifyRepeatedFailure', False),
6703 6710
         ('include-test-summary', 'includeTestSummary', False),
6711
+        ('include-failed-tests', 'includeFailedTests', False),
6704 6712
         ('commit-info-choice', 'commitInfoChoice', 'NONE'),
6705 6713
         ('include-custom-message', 'includeCustomMessage', False),
6706 6714
         ('custom-message', 'customMessage', ''),

+ 2
- 0
tests/publishers/fixtures/slack003.xml View File

@@ -14,8 +14,10 @@
14 14
       <notifyUnstable>false</notifyUnstable>
15 15
       <notifyFailure>false</notifyFailure>
16 16
       <notifyBackToNormal>false</notifyBackToNormal>
17
+      <notifyRegression>false</notifyRegression>
17 18
       <notifyRepeatedFailure>false</notifyRepeatedFailure>
18 19
       <includeTestSummary>false</includeTestSummary>
20
+      <includeFailedTests>false</includeFailedTests>
19 21
       <commitInfoChoice>NONE</commitInfoChoice>
20 22
       <includeCustomMessage>false</includeCustomMessage>
21 23
       <customMessage/>

+ 2
- 0
tests/publishers/fixtures/slack004.xml View File

@@ -14,8 +14,10 @@
14 14
       <notifyUnstable>true</notifyUnstable>
15 15
       <notifyFailure>true</notifyFailure>
16 16
       <notifyBackToNormal>true</notifyBackToNormal>
17
+      <notifyRegression>true</notifyRegression>
17 18
       <notifyRepeatedFailure>true</notifyRepeatedFailure>
18 19
       <includeTestSummary>true</includeTestSummary>
20
+      <includeFailedTests>true</includeFailedTests>
19 21
       <commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
20 22
       <includeCustomMessage>true</includeCustomMessage>
21 23
       <customMessage>A custom message.</customMessage>

+ 2
- 0
tests/publishers/fixtures/slack004.yaml View File

@@ -13,7 +13,9 @@ publishers:
13 13
       notify-failure: True
14 14
       notify-back-to-normal: True
15 15
       notify-repeated-failure: True
16
+      notify-regression: True
16 17
       include-test-summary: True
18
+      include-failed-tests: True
17 19
       commit-info-choice: 'AUTHORS_AND_TITLES'
18 20
       include-custom-message: True
19 21
       custom-message: 'A custom message.'

Loading…
Cancel
Save