Skip to content

Instantly share code, notes, and snippets.

@lukenvn
lukenvn / pipelineChooseDockerTags.groovy
Created July 28, 2020 11:34 — forked from m-x-k/pipelineChooseDockerTags.groovy
Jenkins pipeline - choose docker tags
/*
* Displays input dropdown select containing docker image tags
* Manage Jenkins->Script Approval (required)
*/
node {
stage('chooseDockerTags') {
def image = "IMAGE"
def url = "https://LOCAL-DOCKER-REG:5000/v2/${image}/tags/list"
def list = getDockerImageTags(url)