Package hudson.plugins.cmake
Class BuildToolStep
- All Implemented Interfaces:
Describable<BuildToolStep>,Serializable
Invokes the build tool configured by cmake.
- Author:
- Martin Weber
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Gets the content of the form field 'args'.String[]getCommandArguments(EnvVars buildEnvironment) Gets the arguments to pass to the build tool.Overridden for better type safety.getEnvironmentVars(EnvVars buildEnvironment, TaskListener listener) Gets the extra environment variables to pass to the build tool.Gets the content of the form field 'envVars'.Gets the CMake build preset name (--preset <preset>).booleanGets whether to run the actual build tool directly (by expanding$CMAKE_BUILD_TOOL) or to havecmakerun the build tool (by invokingcmake --build).voidSets the content of the form field 'args'.voidsetEnvVars(String vars) Sets the content of the form field 'envVars'.voidSets the CMake build preset name (--preset <preset>).voidsetWithCmake(boolean withCmake) Sets whether to run the actual build tool directly (by expanding$CMAKE_BUILD_TOOL) or to havecmakerun the build tool (by invokingcmake --build).
-
Constructor Details
-
BuildToolStep
@DataBoundConstructor public BuildToolStep()
-
-
Method Details
-
getCommandArguments
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
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, never
null
-
getDescriptor
Overridden for better type safety.- Specified by:
getDescriptorin interfaceDescribable<BuildToolStep>- Overrides:
getDescriptorin classAbstractDescribableImpl<BuildToolStep>
-
getWithCmake
public boolean getWithCmake()Gets whether to run the actual build tool directly (by expanding$CMAKE_BUILD_TOOL) or to havecmakerun the build tool (by invokingcmake --build). -
setWithCmake
@DataBoundSetter public void setWithCmake(boolean withCmake) Sets whether to run the actual build tool directly (by expanding$CMAKE_BUILD_TOOL) or to havecmakerun the build tool (by invokingcmake --build). -
getArgs
Gets the content of the form field 'args'. -
setArgs
Sets the content of the form field 'args'. -
getEnvVars
Gets the content of the form field 'envVars'. -
setEnvVars
Sets the content of the form field 'envVars'. -
getPreset
Gets the CMake build preset name (--preset <preset>). -
setPreset
Sets the CMake build preset name (--preset <preset>).
-