Class ShellCondition
- 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.ShellCondition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RunCondition>
public class ShellCondition extends CommandInterperterCondition
Executes a series of commands by using a shell.- Author:
- Chris Johnson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShellCondition.ShellConditionDescriptor
-
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 ShellCondition(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
-
ShellCondition
@DataBoundConstructor public ShellCondition(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
-
-