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.

Quay Tag Parameter Plugin

quayImage: Get Quay.io Image Reference

Pipeline step to fetch image references from Quay.io repositories.

Get Latest Image Reference

def imageRef = quayImage(
    organization: 'my-org',
    repository: 'my-repo',
    credentialsId: 'quay-token'
)
echo "Image: ${imageRef}"
// Output: quay.io/my-org/my-repo:latest-tag
    

Get Specific Tag

def imageRef = quayImage(
    organization: 'my-org',
    repository: 'my-repo',
    tag: 'v1.0.0'
)
    

List Available Tags

def tags = quayImage(
    organization: 'my-org',
    repository: 'my-repo',
    listTags: true,
    tagLimit: 10
)
tags.each { tag ->
    echo "Tag: ${tag}"
}
    

Parameters

  • organization (required) - Quay.io organization/namespace
  • repository (required) - Repository name
  • credentialsId (optional) - Jenkins credential ID for private repos
  • tag (optional) - Specific tag to use (defaults to most recent)
  • listTags (optional) - Return array of tag names instead of image reference
  • tagLimit (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)

Was this page helpful?

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.