Use this action to report environment artifact related data to the workflow run for artifact traceability purposes.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The name of the artifact to send to the Cloudbees Platform for artifact traceability purposes. |
|
String |
Yes |
The version of the artifact to send to the Cloudbees Platform for artifact traceability purposes. |
|
String |
Yes |
The url where the artifact version is located e.g. docker.io/myapp/myimg:1.0.0. |
|
String |
No |
The artifact digest that uniquely identifies the artifact. |
|
String |
Yes |
The environment where the deployment occurred. A |
In your YAML file, add:
jobs:
register_artifact_version_to_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: "test_env"
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.