Class BuildstashBuildAction

java.lang.Object
com.buildstash.BuildstashBuildAction
All Implemented Interfaces:
Action, ModelObject

public class BuildstashBuildAction extends Object implements Action
Build action to store Buildstash upload results. This allows the upload results to be displayed on the build page. Supports multiple uploads in a single pipeline run.
  • Constructor Details

  • Method Details

    • addResponse

      public void addResponse(BuildstashUploadResponse response)
      Add a new upload response to the list.
      Parameters:
      response - The upload response to add
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getResponses

      public List<BuildstashUploadResponse> getResponses()
      Get all upload responses.
      Returns:
      List of all upload responses
    • getResponse

      public BuildstashUploadResponse getResponse()
      Get the first response (for backward compatibility).
      Returns:
      The first upload response, or null if none
    • hasResponses

      public boolean hasResponses()
      Check if there are any responses.
      Returns:
      true if there are responses, false otherwise
    • hasAnyPendingProcessing

      public boolean hasAnyPendingProcessing()
      Check if any builds are pending processing.
      Returns:
      true if any build has pending processing, false otherwise