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

Table 1. Input details
Input name Data type Required? Description

digest

String

No

The artifact digest that uniquely identifies the artifact.

labels

String

No

A comma-separated list of artifact labels.

name

String

Yes

The name 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.

target-environment

String

Yes

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

version

String

Yes

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

Usage example

In your YAML file, add:

jobs: register_artifact_version_to_env: environment: test_env steps: - name: Register_deployed_artifact uses: https://github.com/cloudbees-io/register-deployed-artifact@v1 with: name: "testRegisterArtifact" version: "1.0.0" url: "docker.io/myapp/mytestimg:1.0.0" digest: "vsha256:5e0687d9471728b6e6c40a9b07e3b3609v" target-environment: "test_env" labels: "<add,comma,separated,label,list,here>"