Class NuGetCommand
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.dotnet.commands.Command
io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
- Direct Known Subclasses:
DeleteOrPush
,Locals
A build step executing a subcommand of
dotnet nuget
.-
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
Modifier and TypeFieldDescriptionprotected boolean
Indicates whether the command output should be forced to be in English.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
NuGetCommand
(String subCommand) Creates a newdotnet nuget
build step. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds command line arguments for this .NET NuGet command invocation.boolean
Determines whether the command output should be forced to be in English.void
setForceEnglishOutput
(boolean forceEnglishOutput) Determines whether the command output should be forced to be in English.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
-
Field Details
-
forceEnglishOutput
protected boolean forceEnglishOutputIndicates whether the command output should be forced to be in English.
-
-
Constructor Details
-
NuGetCommand
protected NuGetCommand()Creates a newdotnet nuget
build step. -
NuGetCommand
Creates a newdotnet nuget
build step.- Parameters:
subCommand
- Thedotnet nuget
subcommand to execute.
-
-
Method Details
-
addCommandLineArguments
Adds command line arguments for this .NET NuGet command invocation.This adds:
nuget
- The sub-command (e.g.
push
), if applicable. --force-english-output
, if requested viasetForceEnglishOutput(boolean)
.
- Overrides:
addCommandLineArguments
in classCommand
- Parameters:
args
- The current set of arguments.- Throws:
AbortException
- When something goes wrong.
-
isForceEnglishOutput
public boolean isForceEnglishOutput()Determines whether the command output should be forced to be in English.- Returns:
true
when the command output should be forced to be in English;false
otherwise.
-
setForceEnglishOutput
@DataBoundSetter public void setForceEnglishOutput(boolean forceEnglishOutput) Determines whether the command output should be forced to be in English.- Parameters:
forceEnglishOutput
-true
to force the command output to be in English;false
otherwise.
-