Package hudson.plugins.cmake
Class CToolBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.cmake.AbstractCmakeBuilder
hudson.plugins.cmake.CToolBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
Provides a build step that allows to invoke selected tools of the cmake-suite
(
cmake, cpack and ctest) with arbitrary arguments.- Author:
- Martin Weber
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverridden for better type safety.Gets the exit codes of the tool that indicate a failure but should be ignored, thus causing the build to proceed.booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidsetArguments(String arguments) voidsetIgnoredExitCodes(String ignoredExitCodes) voidvoidsetWorkingDir(String buildDir) Methods inherited from class hudson.plugins.cmake.AbstractCmakeBuilder
getInstallationName, getSelectedInstallationMethods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
CToolBuilder
Minimal constructor.- Parameters:
installationName- the name of the cmake tool installation from the global config page.
-
-
Method Details
-
setToolId
-
getToolId
-
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
-
setWorkingDir
- Overrides:
setWorkingDirin classAbstractCmakeBuilder
-
getWorkingDir
- Overrides:
getWorkingDirin classAbstractCmakeBuilder
-
setArguments
- Overrides:
setArgumentsin classAbstractCmakeBuilder
-
getArguments
- Overrides:
getArgumentsin classAbstractCmakeBuilder
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getDescriptor
Overridden for better type safety.- Specified by:
getDescriptorin interfaceDescribable<Builder>- Overrides:
getDescriptorin classBuilder
-