Class VectorCASTCommand
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.vectorcast.plugins.vectorcastexecution.VectorCASTCommand
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
public class VectorCASTCommand extends Builder implements SimpleBuildStep
This class allows a command script to be specified for both Linux and Windows and the build step will test and run the correct command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVectorCASTCommand.DescriptorImplDescriptor forVectorCASTCommand.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description VectorCASTCommand(String winCommand, String unixCommand)Create a VectorCAST command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorCASTCommand.DescriptorImplgetDescriptor()Get the descriptor.StringgetUnixCommand()Get the Unix variant of the command.StringgetWinCommand()Get the windows variant of the command.voidperform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)Perform the script to run the job.-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
getWinCommand
public final String getWinCommand()
Get the windows variant of the command.- Returns:
- windows command.
-
getUnixCommand
public final String getUnixCommand()
Get the Unix variant of the command.- Returns:
- unix command.
-
perform
public void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
Perform the script to run the job.- Specified by:
performin interfaceSimpleBuildStep- Parameters:
build- infoworkspace- infolauncher- infolistener- info
-
getDescriptor
public VectorCASTCommand.DescriptorImpl getDescriptor()
Get the descriptor.- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder- Returns:
- descriptor
-
-