Package hudson.plugins.cmake
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
A pipeline Step that holds information about a cmake installation.
NOTE: Actually, this class is NOT abstract, since we want to re-use the
NOTE: Actually, this class is NOT abstract, since we want to re-use the
@DataBoundSetter methods defined here.- Author:
- Martin weber
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the basename of the command to run (cmake, cpack or ctest).Gets the name of the cmake installation to use for this build stepgetLabel()protected CmakeToolFinds the cmake tool installation to use for this build among all installations configured in the Jenkins administrationvoidorg.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Implemented to just add the label string to the build log.
Sub-classes should override and call super.Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
AbstractStep
Minimal constructor.- Parameters:
installation- the name of the cmake tool installation from the global config page.
-
-
Method Details
-
getInstallation
Gets the name of the cmake installation to use for this build step -
getCommandBasename
Gets the basename of the command to run (cmake, cpack or ctest).- Returns:
"cmake"
-
getSelectedInstallation
Finds the cmake tool installation to use for this build among all installations configured in the Jenkins administration- Returns:
- selected CMake installation or
nullif none could be found
-
setLabel
-
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:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Returns:
- always
null - Throws:
Exception
-