~canonical-platform-qa/qa-jenkins-jobs/update-chroot-builder

« back to all changes in this revision

Viewing changes to jobs/ubuntu-system-tests/report-results-to-grafana-builder.sh

  • Committer: Tarmac
  • Author(s): Richard Huddie
  • Date: 2017-02-15 17:08:44 UTC
  • mfrom: (211.2.11 qa-jenkins-jobs)
  • Revision ID: tarmac-20170215170844-6qbgb2i0931zpn9l
Add grafana builders to ust app launch tests.

Approved by Max Brustkern, Sergio Cazzolato, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
echo "Downloading QAKIT"
2
 
rm -rf qakit
3
 
bzr branch lp:qakit qakit
4
 
export PYTHONPATH=qakit
5
 
 
6
 
rm -rf lifeboat
7
 
git clone $LIFEBOAT_BRANCH lifeboat
8
 
export ANDROID_SERIAL=$(./lifeboat/get-device-info serial $NODE_NAME)
9
 
 
10
 
echo "Setting up grafana"
11
 
export CARBON_SERVER=10.25.236.71
12
 
export CARBON_PORT=2003
13
 
 
14
 
echo "Setting up mongo"
15
 
export MONGO_HOST=10.25.236.10
16
 
export MONGO_PORT=27017
17
 
 
18
 
export REVISION=$(adb -s $ANDROID_SERIAL shell system-image-cli -i | grep "current build number" | cut -d ':' -f 2 | tr -d ' ')
19
 
 
20
 
echo "Push to grafana"
21
 
export OUTPUTDIR="$WORKSPACE/results"
22
 
python3 qakit/qakit/prodenv/tests/sync_test_results.py -p $OUTPUTDIR/test-results.pyunit -d {device} -c $CHANNEL -b $REVISION -s {setid}