Package hudson.plugins.cmake
Class CmakeBuilderStep
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.CmakeBuilderStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>,Serializable
Generates the build scripts with
Similar to
cmake and runs the appropriate
build tool.Similar to
CMakeBuilder, but pipeline compatible.- 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 TypeMethodDescriptionOverridden for better type safety.getSteps()Gets the toolSteps property.booleanvoidsetBuildDir(String buildDir) voidsetBuildType(String buildType) voidsetCleanBuild(boolean cleanBuild) voidsetCmakeArgs(String cmakeArgs) voidsetGenerator(String generator) Sets the name of the build-script generator.voidsetPreloadScript(String preloadScript) voidvoidsetSourceDir(String sourceDir) voidsetSteps(List<BuildToolStep> toolSteps) Sets the toolSteps property.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, setLabel
-
Constructor Details
-
CmakeBuilderStep
Minimal constructor.- Parameters:
installation- the name of the cmake tool installation from the global config page.
-
-
Method Details
-
setGenerator
Sets the name of the build-script generator.- Parameters:
generator- the name of cmake´s build-script generator ornullor empty if the default generator should be used
-
getGenerator
-
setSourceDir
-
getSourceDir
-
setBuildDir
-
getBuildDir
-
setBuildType
-
getBuildType
-
setCleanBuild
@DataBoundSetter public void setCleanBuild(boolean cleanBuild) -
isCleanBuild
public boolean isCleanBuild() -
setPreloadScript
-
getPreloadScript
-
setPreset
-
getPreset
-
setCmakeArgs
-
getCmakeArgs
-
setSteps
Sets the toolSteps property. -
getSteps
Gets the toolSteps property.- Returns:
- the current toolSteps property.
-
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
-
getDescriptor
Overridden for better type safety.- Specified by:
getDescriptorin interfaceDescribable<org.jenkinsci.plugins.workflow.steps.Step>- Overrides:
getDescriptorin classorg.jenkinsci.plugins.workflow.steps.Step
-