public final class XShellBuilder
extends hudson.tasks.Builder
| Modifier and Type | Field and Description |
|---|---|
static XShellDescriptor |
DESCRIPTOR |
static String |
UNIX_SEP |
static String |
WINDOWS_SEP |
| Constructor and Description |
|---|
XShellBuilder(String commandLine,
Boolean executeFromWorkingDir,
String regexToKill,
String timeAllocated) |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertEnvVarsToUnix(String cmdLine)
Convert Windows-style environment variables to UNIX-style.
|
static String |
convertEnvVarsToWindows(String cmdLine)
Convert UNIX-style environment variables to Windows-style.
|
static String |
convertSeparator(String cmdLine,
String newSeparator) |
String |
getCommandLine() |
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor() |
Boolean |
getExecuteFromWorkingDir() |
String |
getRegexToKill() |
String |
getTimeAllocated() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, prebuildpublic static final String UNIX_SEP
public static final String WINDOWS_SEP
@Extension public static final XShellDescriptor DESCRIPTOR
public String getCommandLine()
public Boolean getExecuteFromWorkingDir()
public String getRegexToKill()
public String getTimeAllocated()
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic static String convertEnvVarsToUnix(String cmdLine)
cmdLine - The command line with Windows-style env vars to convert.public static String convertEnvVarsToWindows(String cmdLine)
cmdLine - The command line with Windows-style env vars to convert.Copyright © 2004-2014. All Rights Reserved.