CloudBees action: Register an artifact deployed to an environment

1 minute read

Use this action to report environment artifact-related data to the workflow run for artifact traceability purposes.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

An environment or target-environment input value is required for action to work.
Table 1. Input details
Input name Data type Required? Description

name

String

Yes

The name of the artifact to send to the CloudBees platformfor artifact traceability purposes.

version

String

Yes

The version of the artifact to send to the CloudBees platform for artifact traceability purposes.

url

String

Yes

The URL where the artifact version is located. For example, docker.io/myapp/myimg:1.0.0.

digest

String

No

The artifact digest that uniquely identifies the artifact.

target-environment

String

No

The environment where the deployment occurred. A target-environment value overrides the job environment value.

Usage example

In your YAML file, add:

jobs: register_artifact_version_to_env: environment: test_env steps: - name: Register_deployed_artifact uses: cloudbees-io/register-deployed-artifact@v1 with: name: "testRegisterArtifact" version: "1.0.0" url: "docker.io/myapp/mytestimg:1.0.0" digest: "" target-environment: ""