Class Locals
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.dotnet.commands.Command
io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
io.jenkins.plugins.dotnet.commands.nuget.Locals
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
A build step to run "
dotnet nuget locals
", listing or clearing one or more local package stores.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A descriptor for "dotnet nuget locals
" build steps.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.nuget.NuGetCommand
forceEnglishOutput
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds command line arguments for this .NET NuGet command invocation.Gets the cache location to operate on.Gets the operation to apply.void
setCacheLocation
(String cacheLocation) Sets the cache location to operate on.void
setOperation
(String operation) Sets the operation to apply.Methods inherited from class io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
isForceEnglishOutput, setForceEnglishOutput
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
-
Locals
@DataBoundConstructor public Locals()Creates a new "dotnet nuget locals
" build step.
-
-
Method Details
-
addCommandLineArguments
Description copied from class:NuGetCommand
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 viaNuGetCommand.setForceEnglishOutput(boolean)
.
- Overrides:
addCommandLineArguments
in classNuGetCommand
- Parameters:
args
- The current set of arguments.- Throws:
AbortException
- When something goes wrong.
-
getCacheLocation
Gets the cache location to operate on.This can be one of:
- "global-packages": the global package cache
- "http-cache": the cache used for HTTP responses
- "temp": temporary storage
- "all": all of the above
- Returns:
- The cache location to operate on.
-
setCacheLocation
Sets the cache location to operate on.- Parameters:
cacheLocation
- The cache location to operate on; this can be one of:- "global-packages": the global package cache
- "http-cache": the cache used for HTTP responses
- "temp": temporary storage
- "all": all of the above
-
getOperation
Gets the operation to apply.This can be one of:
- "clear": clears the contents of the cache location
- "list": shows the path to the cache location
- Returns:
- The operation to apply.
-
setOperation
Sets the operation to apply.- Parameters:
operation
- The operation to apply; this can be one of:- "clear": clears the contents of the cache location
- "list": shows the path to the cache location
-