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.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIndicates 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, workDirectoryFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newdotnet nugetbuild step.protectedNuGetCommand(String subCommand) Creates a newdotnet nugetbuild step. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds command line arguments for this .NET NuGet command invocation.booleanDetermines whether the command output should be forced to be in English.voidsetForceEnglishOutput(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, 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
-
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 nugetbuild step. -
NuGetCommand
Creates a newdotnet nugetbuild step.- Parameters:
subCommand- Thedotnet nugetsubcommand 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:
addCommandLineArgumentsin 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:
truewhen the command output should be forced to be in English;falseotherwise.
-
setForceEnglishOutput
@DataBoundSetter public void setForceEnglishOutput(boolean forceEnglishOutput) Determines whether the command output should be forced to be in English.- Parameters:
forceEnglishOutput-trueto force the command output to be in English;falseotherwise.
-