public class CmakeBuilder extends AbstractCmakeBuilder
Modifier and Type | Class and Description |
---|---|
static class |
CmakeBuilder.DescriptorImpl
Descriptor for
CmakeBuilder . |
Modifier and Type | Field and Description |
---|---|
static String |
ENV_VAR_NAME_CMAKE_BUILD_TOOL
the key for the build variable that holds the build tool that the
build-scripts have been generated for (e.g.
|
Constructor and Description |
---|
CmakeBuilder(String installationName)
Minimal constructor.
|
CmakeBuilder(String installationName,
String generator)
Deprecated.
to minimize number of mandatory field values.
|
Modifier and Type | Method and Description |
---|---|
String |
getBuildDir() |
String |
getBuildType() |
boolean |
getCleanBuild() |
String |
getCmakeArgs() |
CmakeBuilder.DescriptorImpl |
getDescriptor()
Overridden for better type safety.
|
String |
getGenerator() |
String |
getPreloadScript() |
String |
getSourceDir() |
List<BuildToolStep> |
getSteps()
Gets the toolSteps property.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
protected Object |
readResolve() |
void |
setBuildDir(String buildDir) |
void |
setBuildType(String buildType) |
void |
setCleanBuild(boolean cleanBuild) |
void |
setCmakeArgs(String cmakeArgs) |
void |
setGenerator(String generator)
Sets the name of the build-script generator.
|
void |
setPreloadScript(String preloadScript) |
void |
setSourceDir(String sourceDir) |
void |
setSteps(List<BuildToolStep> toolSteps)
Sets the toolSteps property.
|
getArguments, getInstallationName, getSelectedInstallation, getWorkingDir, setArguments, setWorkingDir
public static final String ENV_VAR_NAME_CMAKE_BUILD_TOOL
@DataBoundConstructor public CmakeBuilder(String installationName)
installationName
- the name of the cmake tool installation from the global config
page.@Deprecated public CmakeBuilder(String installationName, String generator)
installationName
- the name of the cmake tool installation from the global config
page.generator
- the name of cmake´s buildscript generator. May be empty but
not null
protected Object readResolve()
@DataBoundSetter public void setGenerator(String generator)
generator
- the name of cmake´s build-script generator or null
or
empty if the default generator should be usedpublic String getGenerator()
@DataBoundSetter public void setSourceDir(String sourceDir)
public String getSourceDir()
@DataBoundSetter public void setBuildDir(String buildDir)
public String getBuildDir()
@DataBoundSetter public void setBuildType(String buildType)
public String getBuildType()
@DataBoundSetter public void setCleanBuild(boolean cleanBuild)
public boolean getCleanBuild()
@DataBoundSetter public void setPreloadScript(String preloadScript)
public String getPreloadScript()
@DataBoundSetter public void setCmakeArgs(String cmakeArgs)
public String getCmakeArgs()
@DataBoundSetter public void setSteps(List<BuildToolStep> toolSteps)
public List<BuildToolStep> getSteps()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public CmakeBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2021. All rights reserved.