public abstract class CommandInterperterCondition extends AlwaysPrebuildRunCondition
ShellCondition and BatchFileCondition.RunCondition.RunConditionDescriptor| Modifier and Type | Field and Description |
|---|---|
protected String |
command
Command to execute.
|
| Constructor and Description |
|---|
CommandInterperterCondition(String command) |
| Modifier and Type | Method and Description |
|---|---|
abstract String[] |
buildCommandLine(hudson.FilePath script) |
hudson.FilePath |
createScriptFile(hudson.FilePath dir)
Creates a script file in a temporary name in the specified directory.
|
String |
getCommand() |
protected abstract String |
getContents() |
protected abstract String |
getFileExtension() |
boolean |
runPerform(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Decide whether to run the perform method in the BuildStep.
|
runPrebuildall, getDescriptorprotected final String command
CommandInterpreter implementation.public CommandInterperterCondition(String command)
public final String getCommand()
public boolean runPerform(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
throws InterruptedException
RunConditionrunPerform in class RunConditionInterruptedExceptionpublic hudson.FilePath createScriptFile(hudson.FilePath dir)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract String[] buildCommandLine(hudson.FilePath script)
protected abstract String getContents()
protected abstract String getFileExtension()
Copyright © 2004-2014 Hudson. All Rights Reserved.