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
Nested ClassesModifier and TypeClassDescriptionstatic final classA descriptor for "dotnet nuget delete" build steps.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
Fields inherited from class io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
forceEnglishOutputFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds command line arguments for this "dotnet nuget delete" invocation.Gets the name of the package to delete.The version of the package to delete.voidsetPackageName(String packageName) Sets the name of the package to delete.voidsetPackageVersion(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, setSourceMethods inherited from class io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
isForceEnglishOutput, setForceEnglishOutputMethods 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
-
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:
addCommandLineArgumentsin 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.
-