Created
March 5, 2018 21:38
-
-
Save dmsimard/c4ea97f446d2535c594d0c8bcd24107f to your computer and use it in GitHub Desktop.
dlrn promotions
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
#!/bin/bash | |
releases="api-centos-pike api-centos-queens api-centos-master" | |
names="current-tripleo current-tripleo-rdo current-tripleo-rdo-internal tripleo-ci-testing" | |
for release in $releases | |
do | |
for name in $names | |
do | |
dlrnapi --url https://trunk.rdoproject.org/${release} promotion-get --promote-name ${name} --limit 1 |jq '.[1] | "\(.commit_hash)_\(.distro_hash[0:8])"' | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment