Created
February 17, 2020 17:09
-
-
Save gwsu2008/38339ad133786f0c19d43538234ad009 to your computer and use it in GitHub Desktop.
jenkins.parameter.list.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.JsonSlurper | |
def cmd = 'aws ecr describe-images --repository-name repo_name --query "sort_by(imageDetails,& imagePushedAt)[].imageTags[]"' | |
def ecr_images_json = cmd.execute() | |
def data = new JsonSlurper().parseText(ecr_images_json.text) | |
def ecr_images = [] | |
println (data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment