Package hudson.plugins.cmake
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
Provides a pipeline build step that allows to invoke selected tools of the
cmake-suite (
Similar to
NOTE: Actually, this class is NOT abstract, but we want to re-use the
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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the exit codes of the tool that indicate a failure but should be ignored, thus causing the build to proceed.voidsetArguments(String toolArgs) voidsetIgnoredExitCodes(String ignoredExitCodes) voidsetWorkingDir(String workingDir) org.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 hudson.plugins.cmake.AbstractStep
getCommandBasename, getInstallation, getLabel, getSelectedInstallation, setLabelMethods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
AbstractToolStep
Minimal constructor.- Parameters:
installation- the name of the cmake tool installation from the global config page.
-
-
Method Details
-
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
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception Description copied from class:AbstractStepImplemented to just add the label string to the build log.
Sub-classes should override and call super.- Overrides:
startin classAbstractStep- Returns:
- always
null - Throws:
Exception
-
setWorkingDir
-
getWorkingDir
-
setArguments
-
getArguments
-