Class ProjectGcsUploadReport
- java.lang.Object
-
- com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
-
- com.google.jenkins.plugins.storage.reports.ProjectGcsUploadReport
-
- All Implemented Interfaces:
Action
,ModelObject
public class ProjectGcsUploadReport extends AbstractGcsUploadReport
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 overridingBuildStep.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'sBuildGcsUploadReport
and return the values that such report returns.
-
-
Constructor Summary
Constructors Constructor Description ProjectGcsUploadReport(AbstractProject<?,?> project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getBuckets()
Integer
getBuildNumber()
AbstractProject<?,?>
getProject()
Set<String>
getStorageObjects()
-
Methods inherited from class com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
getDisplayName, getIconFileName, getParent, getUrlName
-
-
-
-
Constructor Detail
-
ProjectGcsUploadReport
public ProjectGcsUploadReport(AbstractProject<?,?> project)
-
-
Method Detail
-
getProject
public AbstractProject<?,?> getProject()
- Returns:
- the project that this
ProjectGcsUploadReport
belongs to.
-
getBuckets
public Set<String> getBuckets()
- Specified by:
getBuckets
in classAbstractGcsUploadReport
- Returns:
- the buckets that were used as upload destinations.
-
getStorageObjects
public Set<String> getStorageObjects()
- Specified by:
getStorageObjects
in classAbstractGcsUploadReport
- Returns:
- the uploaded objects (qualified with bucket name).
-
getBuildNumber
public Integer getBuildNumber()
- Specified by:
getBuildNumber
in classAbstractGcsUploadReport
- Returns:
- the build number of this report.
-
-