public class LocalCloudBuildSource extends CloudBuildSource implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalCloudBuildSource.DescriptorImpl
Descriptor for
LocalCloudBuildSource. |
NULL| Constructor and Description |
|---|
LocalCloudBuildSource(String path) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath() |
com.google.api.services.cloudbuild.v1.model.Source |
prepare(BuildContext context,
ClientFactory clients)
Uploads a local file or directory to Cloud Storage and uses that as the source.
|
getDescriptorpublic com.google.api.services.cloudbuild.v1.model.Source prepare(BuildContext context, ClientFactory clients) throws IOException, InterruptedException
If the path refers to a file, upload that file to a temporary Cloud Storage bucket. If the path refers to a directory, then create a gzipped-tarball containing the contents of that directory and upload that to a temporary Cloud Storage bucket.
prepare in class CloudBuildSourcecontext - the context of the currently running Jenkins buildclients - the factory to use for accessing Google Cloud servicesSource that refers to the uploaded objectIOException - 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.