~james-page/ubuntu-openstack-ci/drop-tox-from-slave-config

« back to all changes in this revision

Viewing changes to operate/deprecated/940-jenkins-master-info.sh

  • Committer: Ryan Beisner
  • Date: 2018-12-13 21:10:41 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: ryan.beisner@canonical.com-20181213211041-5xw4jn4u17ujbv6o
Actually remove the deprecated things

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash -e
2
 
echo $0
3
 
 
4
 
# Get info about jenkins master, such as floating ip, etc.
5
 
 
6
 
. $(dirname $0)/../env-common
7
 
 
8
 
. ~/novarc
9
 
 
10
 
# Get UUID of jenkins instance
11
 
master_uuid=$(juju status --format=yaml ${MASTER} | grep instance-id | awk '{ print $2 }' |\
12
 
   egrep '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
13
 
if [ -z "$master_uuid" ]; then
14
 
  echo "Couldn't get UUID for jenkins master instance."
15
 
  exit 1
16
 
fi
17
 
 
18
 
echo "jenkins master instance info:"
19
 
nova show ${master_uuid}
20