Class BuildEventData

public class BuildEventData

Build event data for Google Cloud Platform API operations.

Inheritance

java.lang.Object > BuildEventData

Constructors

BuildEventData()

public BuildEventData()

Methods

getArtifacts()

public Artifacts getArtifacts()

Artifacts produced by the build that should be uploaded upon successful completion of all build steps.

Returns
TypeDescription
Artifacts

getBuildTriggerID()

public String getBuildTriggerID()

The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.

Returns
TypeDescription
String

getCreateTime()

public OffsetDateTime getCreateTime()

Time at which the request to create the build was received.

Returns
TypeDescription
OffsetDateTime

getFinishTime()

public OffsetDateTime getFinishTime()

Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.

Returns
TypeDescription
OffsetDateTime

getID()

public String getID()

Unique identifier of the build.

Returns
TypeDescription
String

getImages()

public String[] getImages()

A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the `Build` resource's results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.

Returns
TypeDescription
String[]

getLogURL()

public String getLogURL()

URL to logs for this build in Google Cloud Console.

Returns
TypeDescription
String

getLogsBucket()

public String getLogsBucket()

Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.

Returns
TypeDescription
String

getOptions()

public Options getOptions()

Special options for this build.

Returns
TypeDescription
Options

getProjectID()

public String getProjectID()

ID of the project.

Returns
TypeDescription
String

getQueueTTL()

public QueueTTL getQueueTTL()

TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.

Returns
TypeDescription
QueueTTL

getResults()

public Results getResults()

Results of the build.

Returns
TypeDescription
Results

getSecrets()

public Secret[] getSecrets()

Secrets to decrypt using Cloud Key Management Service.

Returns
TypeDescription
Secret[]

getSource()

public Source getSource()

The location of the source files to build.

Returns
TypeDescription
Source

getSourceProvenance()

public SourceProvenance getSourceProvenance()

A permanent fixed identifier for source.

Returns
TypeDescription
SourceProvenance

getStartTime()

public OffsetDateTime getStartTime()

Time at which execution of the build was started.

Returns
TypeDescription
OffsetDateTime

getStatus()

public Status getStatus()

Status of the build.

Returns
TypeDescription
Status

getStatusDetail()

public String getStatusDetail()

Customer-readable message about the current status.

Returns
TypeDescription
String

getSteps()

public Step[] getSteps()

The operations to be performed on the workspace.

Returns
TypeDescription
Step[]

getSubstitutions()

public Map<String,String> getSubstitutions()

Substitutions data for `Build` resource.

Returns
TypeDescription
Map<String,String>

getTags()

public String[] getTags()

Tags for annotation of a `Build`. These are not docker tags.

Returns
TypeDescription
String[]

getTimeout()

public BuildEventDataTimeout getTimeout()

Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`.

Returns
TypeDescription
BuildEventDataTimeout

getTiming()

public Map<String,TimeSpan> getTiming()

Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.

Returns
TypeDescription
Map<String,TimeSpan>

setArtifacts(Artifacts value)

public void setArtifacts(Artifacts value)
Parameter
NameDescription
valueArtifacts

setBuildTriggerID(String value)

public void setBuildTriggerID(String value)
Parameter
NameDescription
valueString

setCreateTime(OffsetDateTime value)

public void setCreateTime(OffsetDateTime value)
Parameter
NameDescription
valueOffsetDateTime

setFinishTime(OffsetDateTime value)

public void setFinishTime(OffsetDateTime value)
Parameter
NameDescription
valueOffsetDateTime

setID(String value)

public void setID(String value)
Parameter
NameDescription
valueString

setImages(String[] value)

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

setLogURL(String value)

public void setLogURL(String value)
Parameter
NameDescription
valueString

setLogsBucket(String value)

public void setLogsBucket(String value)
Parameter
NameDescription
valueString

setOptions(Options value)

public void setOptions(Options value)
Parameter
NameDescription
valueOptions

setProjectID(String value)

public void setProjectID(String value)
Parameter
NameDescription
valueString

setQueueTTL(QueueTTL value)

public void setQueueTTL(QueueTTL value)
Parameter
NameDescription
valueQueueTTL

setResults(Results value)

public void setResults(Results value)
Parameter
NameDescription
valueResults

setSecrets(Secret[] value)

public void setSecrets(Secret[] value)
Parameter
NameDescription
valueSecret[]

setSource(Source value)

public void setSource(Source value)
Parameter
NameDescription
valueSource

setSourceProvenance(SourceProvenance value)

public void setSourceProvenance(SourceProvenance value)
Parameter
NameDescription
valueSourceProvenance

setStartTime(OffsetDateTime value)

public void setStartTime(OffsetDateTime value)
Parameter
NameDescription
valueOffsetDateTime

setStatus(Status value)

public void setStatus(Status value)
Parameter
NameDescription
valueStatus

setStatusDetail(String value)

public void setStatusDetail(String value)
Parameter
NameDescription
valueString

setSteps(Step[] value)

public void setSteps(Step[] value)
Parameter
NameDescription
valueStep[]

setSubstitutions(Map<String,String> value)

public void setSubstitutions(Map<String,String> value)
Parameter
NameDescription
valueMap<String,String>

setTags(String[] value)

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

setTimeout(BuildEventDataTimeout value)

public void setTimeout(BuildEventDataTimeout value)
Parameter
NameDescription
valueBuildEventDataTimeout

setTiming(Map<String,TimeSpan> value)

public void setTiming(Map<String,TimeSpan> value)
Parameter
NameDescription
valueMap<String,TimeSpan>