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.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested 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, workDirectory
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a newdotnet nuget
build step.protected
ToolCommand
(String subCommand) Creates a newdotnet tool
build step. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds 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, setWorkDirectory
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
ToolCommand
protected ToolCommand()Creates a newdotnet nuget
build step. -
ToolCommand
Creates a newdotnet tool
build step.- Parameters:
subCommand
- Thedotnet tool
subcommand 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:
addCommandLineArguments
in classCommand
- Parameters:
args
- The current set of arguments.- Throws:
AbortException
- When something goes wrong.
-