Merge lp:~canonical-platform-qa/qa-jenkins-jobs/ubiquity-grafana into lp:qa-jenkins-jobs

Proposed by Max Brustkern
Status: Merged
Approved by: Sergio Cazzolato
Approved revision: 196
Merged at revision: 196
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/ubiquity-grafana
Merge into: lp:qa-jenkins-jobs
Diff against target: 45 lines (+23/-1)
2 files modified
jobs/macros.yaml (+19/-1)
jobs/ubiquity/jobs.yaml (+4/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/ubiquity-grafana
Reviewer Review Type Date Requested Status
platform-qa-bot continuous-integration Approve
Sergio Cazzolato Approve
Review via email: mp+316048@code.launchpad.net

Commit message

Add Grafana upload macro and add that builder to ubiquity jobs

Description of the change

This branch implements a macro for Grafana uploads and adds it to the ubiquity jobs.

To post a comment you must log in.
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

I like it, approving

review: Approve
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/macros.yaml'
2--- jobs/macros.yaml 2016-05-17 20:51:37 +0000
3+++ jobs/macros.yaml 2017-01-31 19:03:39 +0000
4@@ -18,7 +18,25 @@
5 bsdtar -x -f {iso} -O \./.disk/info >> media_info
6 echo >> media_info
7 cat media_info
8-
9+
10+- builder:
11+ name: grafana-upload
12+ builders:
13+ - shell: |
14+ if [ -z "$BUILDSTAMP" ] ; then
15+ BUILDSTAMP=$(grep -o '([0-9.]\+)' media_info | tr -d '()')
16+ fi
17+ bzr branch lp:custom-grafana-integration $WORKSPACE/grafana-integration
18+ export GRAFANA_INTEGRATION_PATH=$WORKSPACE/grafana-integration
19+ export MONGO_HOST=10.25.236.10
20+ export MONGO_PORT=27017
21+ export CARBON_SERVER=10.25.236.71
22+ export CARBON_PORT=2003
23+ export MSG_CHUNK_SIZE=300
24+ export MSG_WAIT=60
25+ ### Run grafana integration and send data to grafana server ###
26+ $GRAFANA_INTEGRATION_PATH/run_script sync-tests -rt xunit -rf {xunit_file} -m tests_01 -t $(date +%s) -c {channel} -b $BUILDSTAMP -d {device}
27+
28 - publisher: # This publisher archives all job artifacts
29 name: 'archive-artifacts'
30 publishers:
31
32=== modified file 'jobs/ubiquity/jobs.yaml'
33--- jobs/ubiquity/jobs.yaml 2016-12-05 19:05:41 +0000
34+++ jobs/ubiquity/jobs.yaml 2017-01-31 19:03:39 +0000
35@@ -120,6 +120,10 @@
36 ubiquity_branch: '{ubiquity_branch}'
37 - generate-junit-files:
38 source_dir: 'results/var/local/autopilot/junit'
39+ - grafana-upload:
40+ xunit_file: 'results/var/local/autopilot/junit/*.xml'
41+ channel: '{flavor}-{release}-desktop-{arch}-pending'
42+ device: 'vm'
43 publishers:
44 - archive-artifacts
45 - junit:

Subscribers

People subscribed via source and target branches