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

public class CmakeBuilderStep extends AbstractStep
Generates the build scripts with cmake and runs the appropriate build tool.
Similar to CMakeBuilder, but pipeline compatible.
Author:
Martin Weber
See Also:
  • Constructor Details

    • CmakeBuilderStep

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

    • setGenerator

      @DataBoundSetter public void setGenerator(String generator)
      Sets the name of the build-script generator.
      Parameters:
      generator - the name of cmake´s build-script generator or null or empty if the default generator should be used
    • getGenerator

      public String getGenerator()
    • setSourceDir

      @DataBoundSetter public void setSourceDir(String sourceDir)
    • getSourceDir

      public String getSourceDir()
    • setBuildDir

      @DataBoundSetter public void setBuildDir(String buildDir)
    • getBuildDir

      public String getBuildDir()
    • setBuildType

      @DataBoundSetter public void setBuildType(String buildType)
    • getBuildType

      public String getBuildType()
    • setCleanBuild

      @DataBoundSetter public void setCleanBuild(boolean cleanBuild)
    • isCleanBuild

      public boolean isCleanBuild()
    • setPreloadScript

      @DataBoundSetter public void setPreloadScript(String preloadScript)
    • getPreloadScript

      public String getPreloadScript()
    • setPreset

      @DataBoundSetter public void setPreset(String preset)
    • getPreset

      public String getPreset()
    • setCmakeArgs

      @DataBoundSetter public void setCmakeArgs(String cmakeArgs)
    • getCmakeArgs

      public String getCmakeArgs()
    • setSteps

      @DataBoundSetter public void setSteps(List<BuildToolStep> toolSteps)
      Sets the toolSteps property.
    • getSteps

      public List<BuildToolStep> 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: 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
    • getDescriptor

      public CmakeBuilderStep.DescriptorImpl getDescriptor()
      Overridden for better type safety.
      Specified by:
      getDescriptor in interface Describable<org.jenkinsci.plugins.workflow.steps.Step>
      Overrides:
      getDescriptor in class org.jenkinsci.plugins.workflow.steps.Step