Use this GitHub action to report build artifact data generated by a GitHub workflow run to the CloudBees platform for artifact traceability purposes.
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The CloudBees platform URL. Typically, this value is |
|
String |
Yes |
The CloudBees platform personal access token. |
|
String |
Yes |
The CloudBees platform component identifier. This multi-hexadecimal UUID can be found by:
|
|
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 can be pulled for deployment. |
|
String |
No |
The artifact digest that uniquely identifies the artifact. |
Usage example
In your YAML file, add:
steps: - name: <step-name> uses: cloudbees-gha-cbp/register-build-artifact@v1 with: component-id: <component-id> name: <artifact-name> version: <artifact-version> url: <artifact-repo-url> digest: <artifact-digest> cloudbees-url: <cloudbees-url> cloudbees-pat: ${{ <secrets.CloudBees-platform-PAT> }}