All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep, SimpleBuildStep

public final class Delete extends DeleteOrPush
A build step to run "dotnet nuget delete", deleting or unlisting a specific version of a package from a server.
  • Constructor Details

    • Delete

      @DataBoundConstructor public Delete()
      Creates a new "dotnet nuget delete" build step.
  • Method Details

    • addCommandLineArguments

      protected void addCommandLineArguments(@NonNull DotNetArguments args) throws AbortException
      Adds command line arguments for this "dotnet nuget delete" invocation.

      This adds:

      1. Any arguments added by DeleteOrPush.addCommandLineArguments(DotNetArguments).
      2. The package name, if specified via setPackageName(String).
      3. The package version, if specified via setPackageVersion(String).
      Overrides:
      addCommandLineArguments in class DeleteOrPush
      Parameters:
      args - The current set of arguments.
      Throws:
      AbortException - When something goes wrong.
    • getPackageName

      public String getPackageName()
      Gets the name of the package to delete.
      Returns:
      The name of the package to delete.
    • setPackageName

      @DataBoundSetter public void setPackageName(String packageName)
      Sets the name of the package to delete.
      Parameters:
      packageName - The name of the package to delete.
    • getPackageVersion

      public String getPackageVersion()
      The version of the package to delete.
      Returns:
      The version of the package to delete.
    • setPackageVersion

      @DataBoundSetter public void setPackageVersion(String packageVersion)
      Sets the version of the package to delete.
      Parameters:
      packageVersion - The version of the package to delete.