The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
quayImage: Get Quay.io Image ReferencePipeline step to fetch image references from Quay.io repositories.
def imageRef = quayImage(
organization: 'my-org',
repository: 'my-repo',
credentialsId: 'quay-token'
)
echo "Image: ${imageRef}"
// Output: quay.io/my-org/my-repo:latest-tag
def imageRef = quayImage(
organization: 'my-org',
repository: 'my-repo',
tag: 'v1.0.0'
)
def tags = quayImage(
organization: 'my-org',
repository: 'my-repo',
listTags: true,
tagLimit: 10
)
tags.each { tag ->
echo "Tag: ${tag}"
}
organization (required) - Quay.io organization/namespacerepository (required) - Repository namecredentialsId (optional) - Jenkins credential ID for private repostag (optional) - Specific tag to use (defaults to most recent)listTags (optional) - Return array of tag names instead of image referencetagLimit (optional) - Max tags to fetch when listTags=true (default: 20)organization : String
repository : String
credentialsId : String (optional)
listTags : boolean (optional)
tag : String (optional)
tagLimit : int (optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.