summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/publishers.py
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-10-10 13:39:03 +0200
committerChristoph Berg <christoph.berg@credativ.de>2019-10-10 14:50:59 +0200
commit6e835286f198276de883370e0aa9a48d82ac33f2 (patch)
treedbef749f1e075ad7bac9722f1dcb412fe4b08122 /jenkins_jobs/modules/publishers.py
parent84c114c0887248a79cd70619ab8e5229524f683c (diff)
downloadpython-jenkins-job-builder-6e835286f198276de883370e0aa9a48d82ac33f2.tar.gz
python-jenkins-job-builder-6e835286f198276de883370e0aa9a48d82ac33f2.tar.xz
python-jenkins-job-builder-6e835286f198276de883370e0aa9a48d82ac33f2.zip
text-finder: support not-built-if-found
Added upstream June 2018 in https://github.com/jenkinsci/text-finder-plugin/pull/16 Released upstream with 1.11 in June 2019: https://wiki.jenkins.io/display/JENKINS/Text-finder+Plugin Change-Id: I28cf1425da98091ae0b19f450aea3fa5de6546c6
Diffstat (limited to 'jenkins_jobs/modules/publishers.py')
-rw-r--r--jenkins_jobs/modules/publishers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index c9162965..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)