public class BuildEventData
Build event data for Google Cloud Platform API operations.
Inheritance
java.lang.Object >
BuildEventData
Constructors
BuildEventData()
Methods
getArtifacts()
public Artifacts getArtifacts()
Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
Returns
getBuildTriggerID()
public String getBuildTriggerID()
The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
Returns
getCreateTime()
public OffsetDateTime getCreateTime()
Time at which the request to create the build was received.
Returns
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
getID()
Unique identifier of the build.
Returns
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
getLogURL()
public String getLogURL()
URL to logs for this build in Google Cloud Console.
Returns
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
getOptions()
public Options getOptions()
Special options for this build.
Returns
getProjectID()
public String getProjectID()
Returns
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
getResults()
public Results getResults()
Returns
getSecrets()
public Secret[] getSecrets()
Secrets to decrypt using Cloud Key Management Service.
Returns
getSource()
public Source getSource()
The location of the source files to build.
Returns
getSourceProvenance()
public SourceProvenance getSourceProvenance()
A permanent fixed identifier for source.
Returns
getStartTime()
public OffsetDateTime getStartTime()
Time at which execution of the build was started.
Returns
getStatus()
public Status getStatus()
Returns
getStatusDetail()
public String getStatusDetail()
Customer-readable message about the current status.
Returns
getSteps()
The operations to be performed on the workspace.
Returns
getSubstitutions()
public Map<String,String> getSubstitutions()
Substitutions data for `Build` resource.
Returns
public String[] getTags()
Tags for annotation of a `Build`. These are not docker tags.
Returns
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
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
setArtifacts(Artifacts value)
public void setArtifacts(Artifacts value)
Parameter
setBuildTriggerID(String value)
public void setBuildTriggerID(String value)
Parameter
setCreateTime(OffsetDateTime value)
public void setCreateTime(OffsetDateTime value)
Parameter
setFinishTime(OffsetDateTime value)
public void setFinishTime(OffsetDateTime value)
Parameter
setID(String value)
public void setID(String value)
Parameter
setImages(String[] value)
public void setImages(String[] value)
Parameter
setLogURL(String value)
public void setLogURL(String value)
Parameter
setLogsBucket(String value)
public void setLogsBucket(String value)
Parameter
setOptions(Options value)
public void setOptions(Options value)
Parameter
setProjectID(String value)
public void setProjectID(String value)
Parameter
setQueueTTL(QueueTTL value)
public void setQueueTTL(QueueTTL value)
Parameter
setResults(Results value)
public void setResults(Results value)
Parameter
setSecrets(Secret[] value)
public void setSecrets(Secret[] value)
Parameter
setSource(Source value)
public void setSource(Source value)
Parameter
setSourceProvenance(SourceProvenance value)
public void setSourceProvenance(SourceProvenance value)
Parameter
setStartTime(OffsetDateTime value)
public void setStartTime(OffsetDateTime value)
Parameter
setStatus(Status value)
public void setStatus(Status value)
Parameter
setStatusDetail(String value)
public void setStatusDetail(String value)
Parameter
setSteps(Step[] value)
public void setSteps(Step[] value)
Parameter
Name | Description |
value | Step[]
|
setSubstitutions(Map<String,String> value)
public void setSubstitutions(Map<String,String> value)
Parameter
public void setTags(String[] value)
Parameter
setTimeout(BuildEventDataTimeout value)
public void setTimeout(BuildEventDataTimeout value)
Parameter
setTiming(Map<String,TimeSpan> value)
public void setTiming(Map<String,TimeSpan> value)
Parameter