Use this action to manage label(s) to an existing artifact version.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The unique identifier of an artifact. |
|
String |
Yes |
The unique identifier of a component to which the artifact belongs. |
|
String |
No |
A comma-separated list of artifact labels. |
|
String |
No |
The type of action to be performed with labels of an artifact. |
In your YAML file, add:
jobs:
success_add_labels_to_artifact_ver:
steps:
- name: success_add_labels_to_artifact_ver
uses: cloudbees-io/label-artifact-version@v1
with:
component-id: "065b2595-cd1e-415d-9c5b-cab06074b641"
artifact-id: "f089759c-9a6c-4c5b-befb-d70ca006625c"
labels: "<add,comma,separated,label,list,here>"
operation: "ADD"
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.