Class Build
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.dotnet.commands.Command
io.jenkins.plugins.dotnet.commands.msbuild.MSBuildCommand
io.jenkins.plugins.dotnet.commands.msbuild.Build
- All Implemented Interfaces:
- ExtensionPoint,- Describable<Builder>,- BuildStep,- SimpleBuildStep
A build step to run "
dotnet build", building a project.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA descriptor for "dotnet build" build steps.Nested classes/interfaces inherited from interface hudson.tasks.BuildStepBuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStepSimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
- 
Field SummaryFields inherited from class io.jenkins.plugins.dotnet.commands.msbuild.MSBuildCommandconfiguration, nologo, options, outputDirectory, project, properties, verbosityFields inherited from class io.jenkins.plugins.dotnet.commands.Commandsdk, showSdkInfo, shutDownBuildServers, unstableIfErrors, unstableIfWarnings, workDirectoryFields inherited from interface hudson.tasks.BuildStepBUILDERS, PUBLISHERS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidAdds command line arguments for this "dotnet build" invocation.Gets the target framework moniker to use.Gets the runtime identifier to use.Gets the sole target to build.String[]Gets the targets to build.Gets the targets to build.Sets the version suffix to use.booleanisForce()Determines whether dependency resolution should be forced.booleanDetermines whether to ignore project-to-project dependencies.booleanDetermines whether incremental builds are allowed.booleanDetermines whether an implicit restore should be executed as part of this command.voidsetForce(boolean force) Determines whether dependency resolution should be forced.voidsetFramework(String framework) Sets the target framework moniker to use.voidsetNoDependencies(boolean noDependencies) Determines whether to ignore project-to-project dependencies.voidsetNoIncremental(boolean noIncremental) Determines whether incremental builds are allowed.voidsetNoRestore(boolean noRestore) Determines whether an implicit restore should be executed as part of this command.voidsetRuntime(String runtime) Sets the runtime identifier to use.voidSets the sole target to build.voidsetTargets(String... targets) Sets the targets to build.voidsetTargetsString(String targets) Sets the targets to build.voidsetVersionSuffix(String versionSuffix) Sets the version suffix to use.Methods inherited from class io.jenkins.plugins.dotnet.commands.msbuild.MSBuildCommandgetConfiguration, getOption, getOptions, getOptionsString, getOutputDirectory, getProject, getProperties, getPropertiesString, getVerbosity, isNologo, isShutDownBuildServers, isUnstableIfErrors, isUnstableIfWarnings, setConfiguration, setNologo, setOption, setOptions, setOptionsString, setOutputDirectory, setProject, setProperties, setPropertiesString, setShutDownBuildServers, setUnstableIfErrors, setUnstableIfWarnings, setVerbosityMethods inherited from class io.jenkins.plugins.dotnet.commands.CommandgetCharset, getDescriptor, getSdk, getSdkDescriptor, getWorkDirectory, isContinueOnError, isShowSdkInfo, isSpecificSdkVersion, perform, setCharset, setContinueOnError, setSdk, setShowSdkInfo, setSpecificSdkVersion, setWorkDirectoryMethods inherited from class hudson.tasks.Builderall, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayergetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStepgetProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStepperform, perform, requiresWorkspace
- 
Constructor Details- 
Build@DataBoundConstructor public Build()Creates a new "dotnet build" build step.
 
- 
- 
Method Details- 
addCommandLineArgumentsAdds command line arguments for this "dotnet build" invocation.This adds: - Any arguments added by MSBuildCommand.addCommandLineArguments(DotNetArguments).
- --force, if requested via- setForce(boolean).
- --no-dependencies, if requested via- setNoDependencies(boolean).
- --no-incremental, if requested via- setNoIncremental(boolean).
- --no-restore, if requested via- setNoRestore(boolean).
- -f:xxx, if a target framework moniker has been specified via- setFramework(String).
- -r:xxx, if a runtime identifier has been specified via- setRuntime(String).
- 
     -t:xxxfor each target specified viasetTarget(String),setTargets(String...)orsetTargetsString(String).
- --version-suffix xxx, if a version suffix has been specified via- setRuntime(String).
 - Overrides:
- addCommandLineArgumentsin class- MSBuildCommand
- Parameters:
- args- The current set of arguments.
 
- Any arguments added by 
- 
isForcepublic boolean isForce()Determines whether dependency resolution should be forced.- Returns:
- truewhen all dependencies should be resolved even if the last restore was successful;- falseotherwise.
 
- 
setForce@DataBoundSetter public void setForce(boolean force) Determines whether dependency resolution should be forced.- Parameters:
- force-- trueto resolve all dependencies even if the last restore was successful;- falseotherwise.
 
- 
getFrameworkGets the target framework moniker to use.- Returns:
- The target framework moniker to use.
 
- 
setFrameworkSets the target framework moniker to use.- Parameters:
- framework- The target framework moniker to use.
 
- 
isNoDependenciespublic boolean isNoDependencies()Determines whether to ignore project-to-project dependencies.- Returns:
- truewhen project-to-project dependencies are ignored;- falseotherwise.
 
- 
setNoDependencies@DataBoundSetter public void setNoDependencies(boolean noDependencies) Determines whether to ignore project-to-project dependencies.- Parameters:
- noDependencies-- truewhen project-to-project dependencies should be ignored;- falseotherwise.
 
- 
isNoIncrementalpublic boolean isNoIncremental()Determines whether incremental builds are allowed.- Returns:
- truewhen incremental builds are disabled;- falseotherwise.
 
- 
setNoIncremental@DataBoundSetter public void setNoIncremental(boolean noIncremental) Determines whether incremental builds are allowed.- Parameters:
- noIncremental-- trueto disallow incremental builds;- falseotherwise.
 
- 
isNoRestorepublic boolean isNoRestore()Determines whether an implicit restore should be executed as part of this command.- Returns:
- truewhen the implicit restore is disabled;- falseotherwise.
 
- 
setNoRestore@DataBoundSetter public void setNoRestore(boolean noRestore) Determines whether an implicit restore should be executed as part of this command.- Parameters:
- noRestore-- trueto disable the implicit restore;- falseotherwise.
 
- 
getRuntimeGets the runtime identifier to use.- Returns:
- The runtime identifier to use.
 
- 
setRuntimeSets the runtime identifier to use.- Parameters:
- runtime- The runtime identifier to use.
 
- 
getTargetGets the sole target to build.- Returns:
- The sole target to build, or nullwhen there is not exactly one target set.
 
- 
setTargetSets the sole target to build.To set more than one, use setTargets(String...)instead.- Parameters:
- target- The sole target to build.
 
- 
getTargetsGets the targets to build.- Returns:
- The targets to build.
 
- 
setTargetsSets the targets to build.- Parameters:
- targets- The targets to build.
 
- 
getTargetsStringGets the targets to build.- Returns:
- The targets to build.
 
- 
setTargetsStringSets the targets to build.- Parameters:
- targets- The targets to build.
 
- 
getVersionSuffixSets the version suffix to use.- Returns:
- The version suffix to use.
 
- 
setVersionSuffixSets the version suffix to use.- Parameters:
- versionSuffix- The version suffix to use.
 
 
-