Skip to content

cloudbees-io/label-artifact-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees action: Manage label(s) to an existing artifact version

Use this action to manage label(s) to an existing artifact version.

Inputs

Table 1. Input details
Input name Data type Required? Description

artifact-id

String

Yes

The unique identifier of an artifact.

component-id

String

Yes

The unique identifier of a component to which the artifact belongs.

labels

String

No

A comma-separated list of artifact labels.

operation

String

No

The type of action to be performed with labels of an artifact. ADD, REMOVE or REPLACE are options available. REPLACE is used as default value.

Usage example

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"

License

This code is made available under the MIT license.

References

About

Add or remove label(s) to an existing artifact version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published