Created
September 12, 2017 18:00
-
-
Save mccun934/24af1aeaeb0e67e67f251f3a49742800 to your computer and use it in GitHub Desktop.
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 | |
# Show output of commands | |
set -x | |
ORGID=9 | |
for i in {1..10}; | |
do | |
hammer repository create --name demo-$i --organization-id 9 --product demo --url https://mmccune.fedorapeople.org/repos/demo/repo-$i --content-type yum; | |
done | |
# CV create | |
for i in {1..10}; | |
do | |
hammer content-view create --name demo-view-$i --organization-id 9 --repository-ids "3250,3249,3248,3247,3246,3245,3244,3243,3251,3242"; | |
done | |
### Setup lifecycle envs | |
# ENAME="env-0" | |
# hammer lifecycle-environment create --name $ENAME --prior Library --organization-id $ORGID | |
# | |
# for i in {1..10}; | |
# do | |
# hammer lifecycle-environment create --name "env-$i" --prior $ENAME --organization-id $ORGID | |
# ENAME="env-$i" | |
# done | |
# | |
# Promote to environments - envs start with 0, views with 1 | |
for i in {1..10}; | |
do | |
for j in {0..10}; | |
do | |
hammer content-view version promote --content-view "demo-view-$i" --to-lifecycle-environment "env-$j" --organization-id $ORGID | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment