Class TextFinderCondition
- java.lang.Object
-
- org.jenkins_ci.plugins.run_condition.RunCondition
-
- org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
-
- org.jenkins_ci.plugins.text_finder_run_condition.TextFinderCondition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkins_ci.plugins.run_condition.RunCondition>
,Serializable
@Extension public class TextFinderCondition extends org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition implements Serializable
Run condition to search files for text strings. Based off the TextFinderPublisher- Author:
- Chris Johnson
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextFinderCondition.TextFinderConditionDescriptor
-
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
org.jenkins_ci.plugins.run_condition.RunCondition.RunConditionDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description boolean
checkConsoleOutput
True to also scan the whole console outputString
fileSet
String
regexp
-
Constructor Summary
Constructors Constructor Description TextFinderCondition()
TextFinderCondition(String fileSet, String regexp, boolean checkConsoleOutput)
Data bound constructor taking a condition and exclusive cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
runPerform(AbstractBuild<?,?> build, BuildListener listener)
Performs the check of the condition and exclusiveCause.
-
-
-
Method Detail
-
runPerform
public boolean runPerform(AbstractBuild<?,?> build, BuildListener listener) throws IOException, InterruptedException
Performs the check of the condition and exclusiveCause.- Specified by:
runPerform
in classorg.jenkins_ci.plugins.run_condition.RunCondition
- Returns:
- false if more than single cause for the build Otherwise the result of the condition runPerform @see BuildCauseCondition
- Throws:
IOException
InterruptedException
-
-