Class Delete
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.DeleteOrPush
io.jenkins.plugins.dotnet.commands.nuget.Delete
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
A build step to run "
dotnet nuget delete
", deleting or unlisting a specific version of a package from a server.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A descriptor for "dotnet nuget delete
" 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 "dotnet nuget delete
" invocation.Gets the name of the package to delete.The version of the package to delete.void
setPackageName
(String packageName) Sets the name of the package to delete.void
setPackageVersion
(String packageVersion) Sets the version of the package to delete.Methods inherited from class io.jenkins.plugins.dotnet.commands.nuget.DeleteOrPush
getApiKeyId, getSource, isNoServiceEndpoint, setApiKeyId, setNoServiceEndpoint, setSource
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
-
Delete
@DataBoundConstructor public Delete()Creates a new "dotnet nuget delete
" build step.
-
-
Method Details
-
addCommandLineArguments
Adds command line arguments for this "dotnet nuget delete
" invocation.This adds:
- Any arguments added by
DeleteOrPush.addCommandLineArguments(DotNetArguments)
. - The package name, if specified via
setPackageName(String)
. - The package version, if specified via
setPackageVersion(String)
.
- Overrides:
addCommandLineArguments
in classDeleteOrPush
- Parameters:
args
- The current set of arguments.- Throws:
AbortException
- When something goes wrong.
- Any arguments added by
-
getPackageName
Gets the name of the package to delete.- Returns:
- The name of the package to delete.
-
setPackageName
Sets the name of the package to delete.- Parameters:
packageName
- The name of the package to delete.
-
getPackageVersion
The version of the package to delete.- Returns:
- The version of the package to delete.
-
setPackageVersion
Sets the version of the package to delete.- Parameters:
packageVersion
- The version of the package to delete.
-