Package hudson.plugins.xshell
Class XShellBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.xshell.XShellBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
XShell Builder Plugin.
- Author:
- Marco Ambu
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XShellDescriptorstatic final Stringstatic final StringFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertEnvVarsToUnix(String cmdLine) Convert Windows-style environment variables to UNIX-style.static StringconvertEnvVarsToWindows(String cmdLine) Convert UNIX-style environment variables to Windows-style.static StringconvertSeparator(String cmdLine, String newSeparator) booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
UNIX_SEP
- See Also:
-
WINDOWS_SEP
- See Also:
-
DESCRIPTOR
-
-
Constructor Details
-
XShellBuilder
-
-
Method Details
-
getCommandLine
-
getWorkingDir
-
getExecuteFromWorkingDir
-
getRegexToKill
-
getTimeAllocated
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
convertSeparator
-
convertEnvVarsToUnix
Convert Windows-style environment variables to UNIX-style. E.g. "script --opt=%OPT%" to "script --opt=$OPT"- Parameters:
cmdLine- The command line with Windows-style env vars to convert.- Returns:
- The command line with UNIX-style env vars.
-
convertEnvVarsToWindows
Convert UNIX-style environment variables to Windows-style. E.g. "script --opt=$OPT" to "script --opt=%OPT%"- Parameters:
cmdLine- The command line with Windows-style env vars to convert.- Returns:
- The command line with UNIX-style env vars.
-