public class BuildGcsUploadReport extends AbstractGcsUploadReport
Action to surface direct links of objects
uploaded through the
com.google.jenkins.plugins.storage.StdoutUpload.Listener
to the Jenkins UI.| Constructor and Description |
|---|
BuildGcsUploadReport(hudson.model.AbstractBuild<?,?> build) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBucket(String bucketName) |
void |
addUpload(String relativePath,
String bucketDir) |
Set<String> |
getBuckets() |
Integer |
getBuildNumber() |
Set<String> |
getStorageObjects() |
static BuildGcsUploadReport |
of(hudson.model.AbstractBuild<?,?> build) |
static BuildGcsUploadReport |
of(hudson.model.AbstractProject<?,?> project) |
getDisplayName, getIconFileName, getParent, getUrlNamepublic BuildGcsUploadReport(hudson.model.AbstractBuild<?,?> build)
@Nullable public static BuildGcsUploadReport of(hudson.model.AbstractProject<?,?> project)
project - a project to get BuildGcsUploadReport for.BuildGcsUploadReport of the last build, as returned
by of(AbstractBuild), or null of no build existed.public static BuildGcsUploadReport of(hudson.model.AbstractBuild<?,?> build)
build - the build to get BuildGcsUploadReport for.BuildGcsUploadReport of a build. If none,
create a new BuildGcsUploadReport and return.public void addBucket(String bucketName)
bucketName - the name of the destination bucket.public void addUpload(String relativePath, String bucketDir)
relativePath - the relative path (to the workspace) of the uploaded file.bucketDir - the storage prefix, including the bucket name.public Set<String> getBuckets()
getBuckets in class AbstractGcsUploadReportpublic Set<String> getStorageObjects()
getStorageObjects in class AbstractGcsUploadReportpublic Integer getBuildNumber()
getBuildNumber in class AbstractGcsUploadReportCopyright © 2004-2014. All Rights Reserved.