Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created March 5, 2018 21:38
Show Gist options
  • Save dmsimard/c4ea97f446d2535c594d0c8bcd24107f to your computer and use it in GitHub Desktop.
Save dmsimard/c4ea97f446d2535c594d0c8bcd24107f to your computer and use it in GitHub Desktop.
dlrn promotions
#!/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