Class ToolCommand
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.dotnet.commands.Command
io.jenkins.plugins.dotnet.commands.tool.ToolCommand
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
- Direct Known Subclasses:
Restore
A build step executing a subcommand of
dotnet tool.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from class io.jenkins.plugins.dotnet.commands.Command
sdk, showSdkInfo, shutDownBuildServers, unstableIfErrors, unstableIfWarnings, workDirectoryFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newdotnet nugetbuild step.protectedToolCommand(String subCommand) Creates a newdotnet toolbuild step. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds command line arguments for this .NET tool command invocation.Methods inherited from class io.jenkins.plugins.dotnet.commands.Command
getCharset, getDescriptor, getSdk, getSdkDescriptor, getWorkDirectory, isContinueOnError, isShowSdkInfo, isSpecificSdkVersion, perform, setCharset, setContinueOnError, setSdk, setShowSdkInfo, setSpecificSdkVersion, setWorkDirectoryMethods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
ToolCommand
protected ToolCommand()Creates a newdotnet nugetbuild step. -
ToolCommand
Creates a newdotnet toolbuild step.- Parameters:
subCommand- Thedotnet toolsubcommand to execute.
-
-
Method Details
-
addCommandLineArguments
Adds command line arguments for this .NET tool command invocation.This adds:
tool- The sub-command (e.g.
restore), if applicable.
- Overrides:
addCommandLineArgumentsin classCommand- Parameters:
args- The current set of arguments.- Throws:
AbortException- When something goes wrong.
-