Class AbstractToolStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
hudson.plugins.cmake.AbstractStep
hudson.plugins.cmake.AbstractToolStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable
Direct Known Subclasses:
CMakeStep, CPackStep, CTestStep

public class AbstractToolStep extends AbstractStep
Provides a pipeline build step that allows to invoke selected tools of the cmake-suite (cmake, cpack and ctest) with arbitrary arguments.
Similar to CToolBuilder, but pipeline compatible.
NOTE: Actually, this class is NOT abstract, but we want to re-use the @DataBoundSetter methods defined here.
Author:
Martin Weber
See Also:
  • Constructor Details

    • AbstractToolStep

      @DataBoundConstructor public AbstractToolStep(String installation)
      Minimal constructor.
      Parameters:
      installation - the name of the cmake tool installation from the global config page.
  • Method Details

    • getIgnoredExitCodes

      public String getIgnoredExitCodes()
      Gets the exit codes of the tool that indicate a failure but should be ignored, thus causing the build to proceed.
      Returns:
      the ignoredExitCodes property value or null
    • setIgnoredExitCodes

      @DataBoundSetter public void setIgnoredExitCodes(String ignoredExitCodes)
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Description copied from class: AbstractStep
      Implemented to just add the label string to the build log.
      Sub-classes should override and call super.
      Overrides:
      start in class AbstractStep
      Returns:
      always null
      Throws:
      Exception
    • setWorkingDir

      @DataBoundSetter public void setWorkingDir(String workingDir)
    • getWorkingDir

      public String getWorkingDir()
    • setArguments

      @DataBoundSetter public void setArguments(String toolArgs)
    • getArguments

      public String getArguments()