~1chb1n/ubuntu-openstack-ci/mptest0

« back to all changes in this revision

Viewing changes to admin/940-jenkins-master-info.sh

  • Committer: Ryan Beisner
  • Date: 2016-02-23 14:26:10 UTC
  • mfrom: (30.2.201 ubuntu-openstack-ci)
  • Revision ID: ryan.beisner@canonical.com-20160223142610-g4tajprej8p21o08
Rebase parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
. ~/novarc
9
9
 
10
10
# Get UUID of jenkins instance
11
 
master_uuid=$(juju status ${MASTER} | grep instance-id | awk '{ print $2 }' |\
 
11
master_uuid=$(juju status --format=yaml ${MASTER} | grep instance-id | awk '{ print $2 }' |\
12
12
   egrep '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
13
13
if [ -z "$master_uuid" ]; then
14
14
  echo "Couldn't get UUID for jenkins master instance."