~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 22:12:48 UTC
  • mfrom: (402.2.9 uosci-func-test-update)
  • Revision ID: ryan.beisner@canonical.com-20181213221248-by9gaj688y9911cw
[1chb1n, r=thedac] Make functional test naming generic and deprecate unused legacy bits

The functional tests may run amulet or zaza based on each
repo's tox definitions.

Leave symlink shims in for legacy amulet jobs until the
corresponding jobs are all updated to point to the new
generic runner file.

Remove several unused legacy amulet helpers.

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