Class ProjectGcsUploadReport
java.lang.Object
com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
com.google.jenkins.plugins.storage.reports.ProjectGcsUploadReport
- All Implemented Interfaces:
Action
,ModelObject
The model for contributing project actions aren't the same as build action. Instead of
calling @{code project.addAction(someProjectAction)} we will need to contribute through a
project's build steps. This is done by overriding
BuildStep.getProjectAction(AbstractProject)
. When the project UI is rendered,
Jenkins will the overriden method to ask build steps to contribute their project actions.
Since the project UI is rendered infrequently, we can't just provide a static action for the
latest build. Instead, in this ProjectGcsUploadReport
action we will need to dynamically
look for the latest build's BuildGcsUploadReport
and return the values that such report
returns.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
getDisplayName, getIconFileName, getParent, getUrlName
-
Constructor Details
-
ProjectGcsUploadReport
-
-
Method Details
-
getProject
- Returns:
- the project that this
ProjectGcsUploadReport
belongs to.
-
getBuckets
- Specified by:
getBuckets
in classAbstractGcsUploadReport
- Returns:
- the buckets that were used as upload destinations.
-
getStorageObjects
- Specified by:
getStorageObjects
in classAbstractGcsUploadReport
- Returns:
- the uploaded objects (qualified with bucket name).
-
getBuildNumber
- Specified by:
getBuildNumber
in classAbstractGcsUploadReport
- Returns:
- the build number of this report.
-