Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Update cleanup script to match new naming"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 20, 2018
2 parents 3c2d735 + f4f0b10 commit 3b401b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci-scripts/cleanup-stack-image-ovb.sh
Expand Up @@ -9,19 +9,19 @@ set -eux
OVB_CREDS_FILE=$1
PLAYBOOK=$2

# env file is named <prefix>env.yaml
# prefix is built from:
# "{{ 1000 |random }}"-"{{ lookup('env', 'USER') }}"-"{{ lookup('env', 'BUILD_NUMBER') }}"-
# env file is named env-{{ idnum }}.yaml
# idnum is built from:
# "{{ 100000 |random }}"

export PREFIX=$(ls $WORKSPACE | grep -h env.yaml | sed -n -e 's/env.yaml//p')
echo $PREFIX
export IDNUM=$(ls $WORKSPACE | grep -h 'env-.*\.yaml' | sed -e 's/env-\(.*\).yaml/\1/')
echo $IDNUM

pushd $WORKSPACE/tripleo-quickstart

bash quickstart.sh \
--bootstrap \
--working-dir $WORKSPACE/ \
--extra-vars prefix=$PREFIX \
--extra-vars idnum=$IDNUM \
--extra-vars @$OVB_CREDS_FILE \
--playbook $PLAYBOOK \
localhost
Expand Down

0 comments on commit 3b401b3

Please sign in to comment.