summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jenkins_jobs/modules/publishers.py7
-rw-r--r--tests/publishers/fixtures/slack003.xml1
-rw-r--r--tests/publishers/fixtures/slack004.xml1
-rw-r--r--tests/publishers/fixtures/slack004.yaml1
-rw-r--r--tests/publishers/fixtures/text-finder001.xml1
-rw-r--r--tests/publishers/fixtures/text-finder001.yaml1
6 files changed, 11 insertions, 1 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index 6c079ed9..58d54795 100644
--- a/jenkins_jobs/modules/publishers.py
+++ b/jenkins_jobs/modules/publishers.py
@@ -3973,7 +3973,8 @@ def text_finder(registry, xml_parent, data):
Force a build to succeed if a string was found (default false)
:arg bool unstable-if-found:
Set build unstable instead of failing the build (default false)
-
+ :arg bool not-built-if-found:
+ Set build to "Not Built" instead of failing the build (default false)
Example:
@@ -3990,6 +3991,7 @@ def text_finder(registry, xml_parent, data):
("also-check-console-output", "alsoCheckConsoleOutput", False),
("succeed-if-found", "succeedIfFound", False),
("unstable-if-found", "unstableIfFound", False),
+ ("not-built-if-found", "notBuiltIfFound", False),
]
helpers.convert_mapping_to_xml(finder, data, mappings, fail_required=True)
@@ -7402,6 +7404,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 +7482,7 @@ def slack(registry, xml_parent, data):
("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 026be446..bb4480e8 100644
--- a/tests/publishers/fixtures/slack003.xml
+++ b/tests/publishers/fixtures/slack003.xml
@@ -13,6 +13,7 @@
<notifyNotBuilt>false</notifyNotBuilt>
<notifyUnstable>false</notifyUnstable>
<notifyFailure>false</notifyFailure>
+ <notifyEveryFailure>false</notifyEveryFailure>
<notifyBackToNormal>false</notifyBackToNormal>
<notifyRegression>false</notifyRegression>
<notifyRepeatedFailure>false</notifyRepeatedFailure>
diff --git a/tests/publishers/fixtures/slack004.xml b/tests/publishers/fixtures/slack004.xml
index 73eb8b68..425b3370 100644
--- a/tests/publishers/fixtures/slack004.xml
+++ b/tests/publishers/fixtures/slack004.xml
@@ -13,6 +13,7 @@
<notifyNotBuilt>true</notifyNotBuilt>
<notifyUnstable>true</notifyUnstable>
<notifyFailure>true</notifyFailure>
+ <notifyEveryFailure>true</notifyEveryFailure>
<notifyBackToNormal>true</notifyBackToNormal>
<notifyRegression>true</notifyRegression>
<notifyRepeatedFailure>true</notifyRepeatedFailure>
diff --git a/tests/publishers/fixtures/slack004.yaml b/tests/publishers/fixtures/slack004.yaml
index bf4d9e1c..d4a36e04 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
diff --git a/tests/publishers/fixtures/text-finder001.xml b/tests/publishers/fixtures/text-finder001.xml
index 2144183f..cc704337 100644
--- a/tests/publishers/fixtures/text-finder001.xml
+++ b/tests/publishers/fixtures/text-finder001.xml
@@ -7,6 +7,7 @@
<alsoCheckConsoleOutput>true</alsoCheckConsoleOutput>
<succeedIfFound>false</succeedIfFound>
<unstableIfFound>false</unstableIfFound>
+ <notBuiltIfFound>false</notBuiltIfFound>
</hudson.plugins.textfinder.TextFinderPublisher>
</publishers>
</project>
diff --git a/tests/publishers/fixtures/text-finder001.yaml b/tests/publishers/fixtures/text-finder001.yaml
index 3bf42311..7dd93057 100644
--- a/tests/publishers/fixtures/text-finder001.yaml
+++ b/tests/publishers/fixtures/text-finder001.yaml
@@ -5,3 +5,4 @@ publishers:
also-check-console-output: true
succeed-if-found: false
unstable-if-found: false
+ not-built-if-found: false