Reference documentation and code samples for the Google Cloud Build V1 Client class Results.
Artifacts created by the build pipeline.
Generated from protobuf message google.devtools.cloudbuild.v1.Results
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ images |
array<Google\Cloud\Build\V1\BuiltImage>
Container images that were built as a part of the build. |
↳ build_step_images |
array
List of build step digests, in the order corresponding to build step indices. |
↳ artifact_manifest |
string
Path to the artifact manifest. Only populated when artifacts are uploaded. |
↳ num_artifacts |
int|string
Number of artifacts uploaded. Only populated when artifacts are uploaded. |
↳ build_step_outputs |
array
List of build step outputs, produced by builder images, in the order corresponding to build step indices. Cloud Builders can produce this output by writing to |
↳ artifact_timing |
Google\Cloud\Build\V1\TimeSpan
Time to push all non-container artifacts. |
↳ python_packages |
array<Google\Cloud\Build\V1\UploadedPythonPackage>
Python artifacts uploaded to Artifact Registry at the end of the build. |
↳ maven_artifacts |
array<Google\Cloud\Build\V1\UploadedMavenArtifact>
Maven artifacts uploaded to Artifact Registry at the end of the build. |
getImages
Container images that were built as a part of the build.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setImages
Container images that were built as a part of the build.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Build\V1\BuiltImage>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBuildStepImages
List of build step digests, in the order corresponding to build step indices.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setBuildStepImages
List of build step digests, in the order corresponding to build step indices.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getArtifactManifest
Path to the artifact manifest. Only populated when artifacts are uploaded.
| Returns | |
|---|---|
| Type | Description |
string |
|
setArtifactManifest
Path to the artifact manifest. Only populated when artifacts are uploaded.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNumArtifacts
Number of artifacts uploaded. Only populated when artifacts are uploaded.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setNumArtifacts
Number of artifacts uploaded. Only populated when artifacts are uploaded.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBuildStepOutputs
List of build step outputs, produced by builder images, in the order corresponding to build step indices.
Cloud Builders
can produce this output by writing to $BUILDER_OUTPUT/output.
Only the first 4KB of data is stored.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setBuildStepOutputs
List of build step outputs, produced by builder images, in the order corresponding to build step indices.
Cloud Builders
can produce this output by writing to $BUILDER_OUTPUT/output.
Only the first 4KB of data is stored.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getArtifactTiming
Time to push all non-container artifacts.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Build\V1\TimeSpan|null |
|
hasArtifactTiming
clearArtifactTiming
setArtifactTiming
Time to push all non-container artifacts.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Build\V1\TimeSpan
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPythonPackages
Python artifacts uploaded to Artifact Registry at the end of the build.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setPythonPackages
Python artifacts uploaded to Artifact Registry at the end of the build.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Build\V1\UploadedPythonPackage>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMavenArtifacts
Maven artifacts uploaded to Artifact Registry at the end of the build.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setMavenArtifacts
Maven artifacts uploaded to Artifact Registry at the end of the build.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Build\V1\UploadedMavenArtifact>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|