Class BuildGcsUploadReport
java.lang.Object
com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
com.google.jenkins.plugins.storage.reports.BuildGcsUploadReport
- All Implemented Interfaces:
Action
,ModelObject
A build
Action
to surface direct links of objects uploaded through the
StdoutUpload
Listener to the Jenkins UI.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addUpload
(String relativePath, BucketPath bucket) static BuildGcsUploadReport
of
(AbstractProject<?, ?> project) static BuildGcsUploadReport
Methods inherited from class com.google.jenkins.plugins.storage.reports.AbstractGcsUploadReport
getDisplayName, getIconFileName, getParent, getUrlName
-
Constructor Details
-
BuildGcsUploadReport
-
-
Method Details
-
of
- Parameters:
project
- a project to getBuildGcsUploadReport
for.- Returns:
- the
BuildGcsUploadReport
of the last build, as returned byof(Run)
, or null of no build existed.
-
of
- Parameters:
run
- the run to getBuildGcsUploadReport
for.- Returns:
- the existing
BuildGcsUploadReport
of a build. If none, create a newBuildGcsUploadReport
and return.
-
addBucket
- Parameters:
bucketName
- the name of the destination bucket.
-
addUpload
- Parameters:
relativePath
- the relative path (to the workspace) of the uploaded file.bucket
- the directory location in the cloud
-
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.
-