Class BatchFileCondition
- java.lang.Object
-
- org.jenkins_ci.plugins.run_condition.RunCondition
-
- org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
-
- org.jenkins_ci.plugins.run_condition.contributed.CommandInterperterCondition
-
- org.jenkins_ci.plugins.run_condition.contributed.BatchFileCondition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RunCondition>
public class BatchFileCondition extends CommandInterperterCondition
Executes commands by using Windows batch file.- Author:
- Chris Johnson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchFileCondition.BatchFileConditionDescriptor
-
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
RunCondition.RunConditionDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class org.jenkins_ci.plugins.run_condition.contributed.CommandInterperterCondition
command
-
-
Constructor Summary
Constructors Constructor Description BatchFileCondition(String command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
buildCommandLine(FilePath script)
protected String
getContents()
protected String
getFileExtension()
-
Methods inherited from class org.jenkins_ci.plugins.run_condition.contributed.CommandInterperterCondition
createScriptFile, getCommand, runPerform
-
Methods inherited from class org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
runPrebuild
-
Methods inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
all, getDescriptor
-
-
-
-
Constructor Detail
-
BatchFileCondition
@DataBoundConstructor public BatchFileCondition(String command)
-
-
Method Detail
-
buildCommandLine
public String[] buildCommandLine(FilePath script)
- Specified by:
buildCommandLine
in classCommandInterperterCondition
-
getContents
protected String getContents()
- Specified by:
getContents
in classCommandInterperterCondition
-
getFileExtension
protected String getFileExtension()
- Specified by:
getFileExtension
in classCommandInterperterCondition
-
-