Google Cloud Build V1 Client - Class Results (0.13.2)

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

↳ num_artifacts int|string

Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

↳ 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 $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

↳ artifact_timing Google\Cloud\Build\V1\TimeSpan

Time to push all non-container artifacts to Cloud Storage.

↳ 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.

↳ npm_packages array<Google\Cloud\Build\V1\UploadedNpmPackage>

Npm packages uploaded to Artifact Registry at the end of the build.

getImages

Container images that were built as a part of the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setImages

Container images that were built as a part of the build.

Parameter
NameDescription
var array<Google\Cloud\Build\V1\BuiltImage>
Returns
TypeDescription
$this

getBuildStepImages

List of build step digests, in the order corresponding to build step indices.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBuildStepImages

List of build step digests, in the order corresponding to build step indices.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getArtifactManifest

Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

Returns
TypeDescription
string

setArtifactManifest

Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNumArtifacts

Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

Returns
TypeDescription
int|string

setNumArtifacts

Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getArtifactTiming

Time to push all non-container artifacts to Cloud Storage.

Returns
TypeDescription
Google\Cloud\Build\V1\TimeSpan|null

hasArtifactTiming

clearArtifactTiming

setArtifactTiming

Time to push all non-container artifacts to Cloud Storage.

Parameter
NameDescription
var Google\Cloud\Build\V1\TimeSpan
Returns
TypeDescription
$this

getPythonPackages

Python artifacts uploaded to Artifact Registry at the end of the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPythonPackages

Python artifacts uploaded to Artifact Registry at the end of the build.

Parameter
NameDescription
var array<Google\Cloud\Build\V1\UploadedPythonPackage>
Returns
TypeDescription
$this

getMavenArtifacts

Maven artifacts uploaded to Artifact Registry at the end of the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMavenArtifacts

Maven artifacts uploaded to Artifact Registry at the end of the build.

Parameter
NameDescription
var array<Google\Cloud\Build\V1\UploadedMavenArtifact>
Returns
TypeDescription
$this

getNpmPackages

Npm packages uploaded to Artifact Registry at the end of the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNpmPackages

Npm packages uploaded to Artifact Registry at the end of the build.

Parameter
NameDescription
var array<Google\Cloud\Build\V1\UploadedNpmPackage>
Returns
TypeDescription
$this