public class CloudStorageClient extends Object
Modifier and Type | Method and Description |
---|---|
String |
createTempBucket()
Creates a bucket for storing temporary objects.
|
void |
putCloudFiles(String bucket,
String object,
String type,
InputStream data)
Uploads an object to the Jenkins workspace.
|
public void putCloudFiles(String bucket, String object, String type, InputStream data) throws IOException
bucket
- the bucket to upload toobject
- the path to the object to write to within the buckettype
- the MIME type of the object to uploaddata
- an InputStream for reading the data to be uploadedIOException
- if an I/O error occurs while processing the requestpublic String createTempBucket() throws IOException
IOException
- if an I/O error occurs while communicating with the Cloud Storage API to
find or create the temporary bucketCopyright © 2017–2021 Google. All rights reserved.