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
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
No |
The artifact digest that uniquely identifies the artifact. |
|
String |
No |
A comma-separated list of artifact labels. |
|
String |
Yes |
The name of the artifact to send to the CloudBees platform for artifact traceability purposes. |
|
String |
Yes |
The URL where the artifact version is located. For example, docker.io/myapp/myimg:1.0.0. |
|
String |
Yes |
The environment where the deployment occurred. A |
|
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>"