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 TypeMethodDescriptionvoidvoidaddUpload(String relativePath, BucketPath bucket) static BuildGcsUploadReportof(AbstractProject<?, ?> project) static BuildGcsUploadReportMethods 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 getBuildGcsUploadReportfor.- Returns:
- the
BuildGcsUploadReportof the last build, as returned byof(Run), or null of no build existed.
-
of
- Parameters:
run- the run to getBuildGcsUploadReportfor.- Returns:
- the existing
BuildGcsUploadReportof a build. If none, create a newBuildGcsUploadReportand 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:
getBucketsin classAbstractGcsUploadReport- Returns:
- the buckets that were used as upload destinations.
-
getStorageObjects
- Specified by:
getStorageObjectsin classAbstractGcsUploadReport- Returns:
- the uploaded objects (qualified with bucket name).
-
getBuildNumber
- Specified by:
getBuildNumberin classAbstractGcsUploadReport- Returns:
- the build number of this report.
-