Google Cloud Build V1 Client - Class Results (0.16.3)

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

Returns
Type Description
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
Name Description
var string
Returns
Type Description
$this

getNumArtifacts

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

Returns
Type Description
int|string

setNumArtifacts

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

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 to Cloud Storage.

Returns
Type Description
Google\Cloud\Build\V1\TimeSpan|null

hasArtifactTiming

clearArtifactTiming

setArtifactTiming

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

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

getNpmPackages

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNpmPackages

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

Parameter
Name Description
var array<Google\Cloud\Build\V1\UploadedNpmPackage>
Returns
Type Description
$this