Google Cloud Build V1 Client - Class Artifacts (0.16.3)

Reference documentation and code samples for the Google Cloud Build V1 Client class Artifacts.

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

Generated from protobuf message google.devtools.cloudbuild.v1.Artifacts

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ images array

A list of images to be pushed upon the successful completion of all build steps. The images will be 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 is marked FAILURE.

↳ objects Google\Cloud\Build\V1\Artifacts\ArtifactObjects

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

↳ maven_artifacts array<Google\Cloud\Build\V1\Artifacts\MavenArtifact>

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.

↳ python_packages array<Google\Cloud\Build\V1\Artifacts\PythonPackage>

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.

↳ npm_packages array<Google\Cloud\Build\V1\Artifacts\NpmPackage>

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.

getImages

A list of images to be pushed upon the successful completion of all build steps.

The images will be 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 is marked FAILURE.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setImages

A list of images to be pushed upon the successful completion of all build steps.

The images will be 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 is marked FAILURE.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getObjects

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

Returns
Type Description
Google\Cloud\Build\V1\Artifacts\ArtifactObjects|null

hasObjects

clearObjects

setObjects

A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE.

Parameter
Name Description
var Google\Cloud\Build\V1\Artifacts\ArtifactObjects
Returns
Type Description
$this

getMavenArtifacts

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMavenArtifacts

A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.

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

getPythonPackages

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPythonPackages

A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.

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

getNpmPackages

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNpmPackages

A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.

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