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
This commit is contained in:
Christoph Berg 2019-10-10 13:39:03 +02:00
parent 84c114c088
commit 6e835286f1
3 changed files with 5 additions and 1 deletions

View File

@ -3973,7 +3973,8 @@ def text_finder(registry, xml_parent, data):
Force a build to succeed if a string was found (default false) Force a build to succeed if a string was found (default false)
:arg bool unstable-if-found: :arg bool unstable-if-found:
Set build unstable instead of failing the build (default false) 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: Example:
@ -3990,6 +3991,7 @@ def text_finder(registry, xml_parent, data):
("also-check-console-output", "alsoCheckConsoleOutput", False), ("also-check-console-output", "alsoCheckConsoleOutput", False),
("succeed-if-found", "succeedIfFound", False), ("succeed-if-found", "succeedIfFound", False),
("unstable-if-found", "unstableIfFound", False), ("unstable-if-found", "unstableIfFound", False),
("not-built-if-found", "notBuiltIfFound", False),
] ]
helpers.convert_mapping_to_xml(finder, data, mappings, fail_required=True) helpers.convert_mapping_to_xml(finder, data, mappings, fail_required=True)

View File

@ -7,6 +7,7 @@
<alsoCheckConsoleOutput>true</alsoCheckConsoleOutput> <alsoCheckConsoleOutput>true</alsoCheckConsoleOutput>
<succeedIfFound>false</succeedIfFound> <succeedIfFound>false</succeedIfFound>
<unstableIfFound>false</unstableIfFound> <unstableIfFound>false</unstableIfFound>
<notBuiltIfFound>false</notBuiltIfFound>
</hudson.plugins.textfinder.TextFinderPublisher> </hudson.plugins.textfinder.TextFinderPublisher>
</publishers> </publishers>
</project> </project>

View File

@ -5,3 +5,4 @@ publishers:
also-check-console-output: true also-check-console-output: true
succeed-if-found: false succeed-if-found: false
unstable-if-found: false unstable-if-found: false
not-built-if-found: false