Class BuildToolStep

All Implemented Interfaces:
Describable<BuildToolStep>, Serializable

public class BuildToolStep extends AbstractDescribableImpl<BuildToolStep> implements Serializable
Invokes the build tool configured by cmake.
Author:
Martin Weber
See Also:
  • Constructor Details

    • BuildToolStep

      @DataBoundConstructor public BuildToolStep()
  • Method Details

    • getCommandArguments

      public String[] getCommandArguments(EnvVars buildEnvironment)
      Gets the arguments to pass to the build tool.
      Parameters:
      buildEnvironment - the environement of the build step, for variable expansion.
      Returns:
      the arguments, never null
    • getEnvironmentVars

      public Map<String,String> getEnvironmentVars(EnvVars buildEnvironment, TaskListener listener)
      Gets the extra environment variables to pass to the build tool.
      Parameters:
      buildEnvironment - the environement of the build step, for variable expansion.
      Returns:
      the variables and values, nevernull
    • getDescriptor

      public BuildToolStep.DescriptorImpl getDescriptor()
      Overridden for better type safety.
      Specified by:
      getDescriptor in interface Describable<BuildToolStep>
      Overrides:
      getDescriptor in class AbstractDescribableImpl<BuildToolStep>
    • getWithCmake

      public boolean getWithCmake()
      Gets whether to run the actual build tool directly (by expanding $CMAKE_BUILD_TOOL) or to have cmake run the build tool (by invoking cmake --build).
    • setWithCmake

      @DataBoundSetter public void setWithCmake(boolean withCmake)
      Sets whether to run the actual build tool directly (by expanding $CMAKE_BUILD_TOOL) or to have cmake run the build tool (by invoking cmake --build).
    • getArgs

      public String getArgs()
      Gets the content of the form field 'args'.
    • setArgs

      @DataBoundSetter public void setArgs(String args)
      Sets the content of the form field 'args'.
    • getEnvVars

      public String getEnvVars()
      Gets the content of the form field 'envVars'.
    • setEnvVars

      @DataBoundSetter public void setEnvVars(String vars)
      Sets the content of the form field 'envVars'.
    • getPreset

      public String getPreset()
      Gets the CMake build preset name (--preset <preset>).
    • setPreset

      @DataBoundSetter public void setPreset(String preset)
      Sets the CMake build preset name (--preset <preset>).