Class AbstractStep

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

public class AbstractStep extends org.jenkinsci.plugins.workflow.steps.Step implements Serializable
A pipeline Step that holds information about a cmake installation.
NOTE: Actually, this class is NOT abstract, since we want to re-use the @DataBoundSetter methods defined here.
Author:
Martin weber
See Also:
  • Constructor Details

    • AbstractStep

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

    • getInstallation

      public String getInstallation()
      Gets the name of the cmake installation to use for this build step
    • getCommandBasename

      protected String getCommandBasename()
      Gets the basename of the command to run (cmake, cpack or ctest).
      Returns:
      "cmake"
    • getSelectedInstallation

      protected CmakeTool getSelectedInstallation()
      Finds the cmake tool installation to use for this build among all installations configured in the Jenkins administration
      Returns:
      selected CMake installation or null if none could be found
    • setLabel

      @DataBoundSetter public void setLabel(String label)
    • getLabel

      public String getLabel()
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Implemented to just add the label string to the build log.
      Sub-classes should override and call super.
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Returns:
      always null
      Throws:
      Exception