public final class StorageCloudBuildSource extends CloudBuildSource implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
StorageCloudBuildSource.DescriptorImpl
Descriptor for
StorageCloudBuildSource . |
NULL
Constructor and Description |
---|
StorageCloudBuildSource(String bucket,
String object) |
Modifier and Type | Method and Description |
---|---|
String |
getBucket() |
String |
getObject() |
com.google.api.services.cloudbuild.v1.model.Source |
prepare(BuildContext context,
ClientFactory clients)
Prepares the source and returns the
Source object to be used for the build request. |
getDescriptor
public com.google.api.services.cloudbuild.v1.model.Source prepare(BuildContext context, ClientFactory clients) throws IOException, InterruptedException
CloudBuildSource
Source
object to be used for the build request.prepare
in class CloudBuildSource
context
- the context of the currently running Jenkins buildclients
- the factory to use for accessing Google Cloud servicesSource
to attach to the build requestIOException
- if an I/O error occurs while preparing the sourceInterruptedException
- if an operation involving communicating with another Jenkins node
is interruptedCopyright © 2017–2021 Google. All rights reserved.