Package com.buildstash
Class BuildstashBuildAction
java.lang.Object
com.buildstash.BuildstashBuildAction
- All Implemented Interfaces:
Action,ModelObject
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponse(BuildstashUploadResponse response) Add a new upload response to the list.Get the first response (for backward compatibility).Get all upload responses.booleanCheck if any builds are pending processing.booleanCheck if there are any responses.
-
Constructor Details
-
BuildstashBuildAction
-
-
Method Details
-
addResponse
Add a new upload response to the list.- Parameters:
response- The upload response to add
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getResponses
Get all upload responses.- Returns:
- List of all upload responses
-
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
-