Use this action to report build artifact-related data from a CloudBees platform 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 |
Yes |
The name of the artifact to send to the CloudBees platform. |
|
String |
Yes |
The URL where the artifact version is located. For example, |
|
String |
Yes |
The version of the artifact to send to the CloudBees platform. |
|
String |
No |
The artifact digest that uniquely identifies the artifact. |
|
String |
No |
A comma-separated list of artifact labels. |
Usage examples
Basic example
The following is a basic example of using the action:
jobs: register_build_artifact: uses: cloudbees-io/register-build-artifact@v1 with: name: "myApp" version: "1.0.0" url: "docker.io/myapp/myimg:1.0.0"
Using optional inputs
The following example specifies the artifact digest and labels:
jobs: register_build_artifact: uses: cloudbees-io/register-build-artifact@v1 with: name: "myApp" version: "1.0.0" url: "docker.io/myapp/myimg:1.0.0" digest: "sha256:1234567890abcdefghijklmnop1234567" labels: "label1,label2"
Full workflow example
The following workflow example uses the action to register a build artifact to the platform.
Then it deploys the artifact to the Docker test
target environment and publishes evidence to the platform.