Class VectorCASTCommand

  • All Implemented Interfaces:
    hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep, jenkins.tasks.SimpleBuildStep

    public class VectorCASTCommand
    extends hudson.tasks.Builder
    implements jenkins.tasks.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 class  VectorCASTCommand.DescriptorImpl
      Descriptor for VectorCASTCommand.
      • Nested classes/interfaces inherited from interface hudson.tasks.BuildStep

        hudson.tasks.BuildStep.PublisherList
      • Nested classes/interfaces inherited from interface hudson.ExtensionPoint

        hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
      • Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep

        jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.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.DescriptorImpl getDescriptor()  
      String getUnixCommand()
      Get the Unix variant of the command
      String getWinCommand()
      Get the windows variant of the command
      void perform​(hudson.model.Run<?,​?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)  
      • 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 interface hudson.tasks.BuildStep

        getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
      • Methods inherited from interface jenkins.tasks.SimpleBuildStep

        perform, perform, requiresWorkspace
    • Constructor Detail

      • VectorCASTCommand

        @DataBoundConstructor
        public VectorCASTCommand​(String winCommand,
                                 String unixCommand)
        Create a VectorCAST command
        Parameters:
        winCommand - the windows variant of the command
        unixCommand - the unix variant of the command
    • 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​(hudson.model.Run<?,​?> build,
                            hudson.FilePath workspace,
                            hudson.Launcher launcher,
                            hudson.model.TaskListener listener)
        Specified by:
        perform in interface jenkins.tasks.SimpleBuildStep
      • getDescriptor

        public VectorCASTCommand.DescriptorImpl getDescriptor()
        Specified by:
        getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
        Overrides:
        getDescriptor in class hudson.tasks.Builder