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

public final class Push extends DeleteOrPush
A build step to run "dotnet nuget push", pushing a package to a server and publishing it.
  • Constructor Details

    • Push

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

    • addCommandLineArguments

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

      This adds:

      1. Any arguments added by DeleteOrPush.addCommandLineArguments(DotNetArguments).
      2. The package file path specified via setRoot(String).
      3. --disable-buffering, if requested via setDisableBuffering(boolean).
      4. --no-symbols, if requested via setNoSymbols(boolean).
      5. --skip-duplicate, if requested via setSkipDuplicate(boolean).
      6. --symbol-api-key xxx, if an API key was specified via setSymbolApiKeyId(String).
      7. --symbol-source xxx, if a symbol source was specified via setSymbolSource(String).
      8. --timeout nnn, if a timeout was specified via setTimeout(Integer).
      Overrides:
      addCommandLineArguments in class DeleteOrPush
      Parameters:
      args - The current set of arguments.
      Throws:
      AbortException - When something goes wrong.
    • isDisableBuffering

      public boolean isDisableBuffering()
      Indicates whether buffering should be disabled when pushing to an HTTP(S) source.
      Returns:
      true when buffering should be disabled when pushing to an HTTP(S) source; false otherwise.
    • setDisableBuffering

      @DataBoundSetter public void setDisableBuffering(boolean disableBuffering)
      Determine whether buffering should be disabled when pushing to an HTTP(S) source.
      Parameters:
      disableBuffering - true to disable buffering when pushing to an HTTP(S) source; false otherwise.
    • isNoSymbols

      public boolean isNoSymbols()
      Indicates whether symbols will not get pushed even when present.
      Returns:
      true when symbols should not get pushed, even when present; false otherwise.
    • setNoSymbols

      @DataBoundSetter public void setNoSymbols(boolean noSymbols)
      Determine whether symbols will not get pushed even when present.
      Parameters:
      noSymbols - true not to push symbols, even when present; false otherwise.
    • getRoot

      @CheckForNull public String getRoot()
      Gets the project to push packages for.
      Returns:
      The project to push packages for.
    • setRoot

      @DataBoundSetter public void setRoot(@CheckForNull String root)
      Sets the project to push packages for.
      Parameters:
      root - The project to push packages for.
    • isSkipDuplicate

      public boolean isSkipDuplicate()
      Indicates whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.
      Returns:
      true when duplicates should be treated as warnings when pushing multiple packages; false otherwise.
    • setSkipDuplicate

      @DataBoundSetter public void setSkipDuplicate(boolean skipDuplicate)
      Determine whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.
      Parameters:
      skipDuplicate - true to treat duplicates as warnings when pushing multiple packages; false otherwise.
    • getSymbolApiKeyId

      @CheckForNull public String getSymbolApiKeyId()
      Gets the symbol server API key to use.
      Returns:
      The symbol server API key to use.
    • setSymbolApiKeyId

      @DataBoundSetter public void setSymbolApiKeyId(@CheckForNull String symbolApiKeyId)
      Sets the symbol server API key to use.
      Parameters:
      symbolApiKeyId - The symbol server API key to use.
    • getSymbolSource

      public String getSymbolSource()
      Gets the symbol server URL.
      Returns:
      The symbol server URL.
    • setSymbolSource

      @DataBoundSetter public void setSymbolSource(String symbolSource)
      Sets the symbol server URL.
      Parameters:
      symbolSource - The symbol server URL.
    • getTimeout

      public Integer getTimeout()
      Gets the timeout for pushing to a server, in seconds.
      Returns:
      The timeout for pushing to a server, in seconds.
    • setTimeout

      @DataBoundSetter public void setTimeout(@CheckForNull Integer timeout)
      Sets the timeout for pushing to a server, in seconds.
      Parameters:
      timeout - The timeout for pushing to a server, in seconds.