Class Objects

public class Objects

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

Inheritance

java.lang.Object > Objects

Constructors

Objects()

public Objects()

Methods

getLocation()

public String getLocation()

Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.

Returns
TypeDescription
String

getPaths()

public String[] getPaths()

Path globs used to match files in the build's workspace.

Returns
TypeDescription
String[]

getTiming()

public ObjectsTiming getTiming()

Stores timing information for pushing all artifact objects.

Returns
TypeDescription
ObjectsTiming

setLocation(String value)

public void setLocation(String value)
Parameter
NameDescription
valueString

setPaths(String[] value)

public void setPaths(String[] value)
Parameter
NameDescription
valueString[]

setTiming(ObjectsTiming value)

public void setTiming(ObjectsTiming value)
Parameter
NameDescription
valueObjectsTiming