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

Proposed by Max Brustkern
Status: Merged
Approved by: Sergio Cazzolato
Approved revision: 214
Merged at revision: 212
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/grafana-post-build
Merge into: lp:qa-jenkins-jobs
Diff against target: 73 lines (+18/-14)
3 files modified
jobs/auto-upgrade-testing/jobs.yaml (+7/-7)
jobs/iso-testing/jobs.yaml (+3/-3)
jobs/ubiquity/jobs.yaml (+8/-4)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/grafana-post-build
Reviewer Review Type Date Requested Status
Sergio Cazzolato Approve
platform-qa-bot continuous-integration Approve
Review via email: mp+317126@code.launchpad.net

Commit message

Fix issues and move grafana upload to post-build step

Description of the change

This branch moves grafana upload to a post-build step so it should still run if tests fail. A couple other small job issues are also addressed.

To post a comment you must log in.
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

Code lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'jobs/auto-upgrade-testing/jobs.yaml'
--- jobs/auto-upgrade-testing/jobs.yaml 2017-02-10 14:55:05 +0000
+++ jobs/auto-upgrade-testing/jobs.yaml 2017-02-13 16:23:24 +0000
@@ -71,18 +71,18 @@
71 cd auto-upgrade-testing71 cd auto-upgrade-testing
7272
73 set +e73 set +e
74 sudo python3 -m upgrade_testing.command_line -c $PROFILE --provision --results-dir "$WORKSPACE/ubuntu-trusty-xenial-basic-amd64_qemu/"74 sudo python3 -m upgrade_testing.command_line -c $PROFILE --provision --results-dir "$WORKSPACE/{profile}/"
75 EXITSTATUS=$?75 EXITSTATUS=$?
76 cp $WORKSPACE/ubuntu-trusty-xenial-basic-amd64_qemu/*/artifacts/upgrade_run/junit.xml $WORKSPACE/junit.xml76 cp $WORKSPACE/{profile}/*/artifacts/upgrade_run/junit.xml $WORKSPACE/junit.xml
77 exit $EXITSTATUS77 exit $EXITSTATUS
78 - grafana-tests-upload:
79 results_type: 'xunit'
80 results_file: 'junit.xml'
81 info_file: 'global_info.json'
82 publishers:78 publishers:
83 - postbuildscript:79 - postbuildscript:
84 builders:80 builders:
85 - shell: 'sudo chown -R $USER:$USER "$WORKSPACE/{profile}"'81 - shell: 'sudo chown -R $USER:$USER "$WORKSPACE/{profile}"'
82 - grafana-tests-upload:
83 results_type: 'xunit'
84 results_file: 'junit.xml'
85 info_file: 'global_info.json'
86 script-only-if-succeeded: False86 script-only-if-succeeded: False
87 script-only-if-failed: False87 script-only-if-failed: False
88 - archive:88 - archive:
8989
=== modified file 'jobs/iso-testing/jobs.yaml'
--- jobs/iso-testing/jobs.yaml 2017-02-08 21:04:16 +0000
+++ jobs/iso-testing/jobs.yaml 2017-02-13 16:23:24 +0000
@@ -479,11 +479,11 @@
479 project-name: 'qakit'479 project-name: 'qakit'
480 - grafana-setup480 - grafana-setup
481 - shell: |481 - shell: |
482 #!/bin/bash482 #!/bin/bash -ex
483 export OUTPUTDIR=$WORKSPACE/results
483 mkdir -p $OUTPUTDIR484 mkdir -p $OUTPUTDIR
484 export OUTPUTDIR=$WORKSPACE/results485 export DATADIR=/data/footprint/{flavor}-{release}-desktop-{arch}
485 mkdir -p $DATADIR486 mkdir -p $DATADIR
486 export DATADIR=/data/footprint/{flavor}-{release}-desktop-{arch}
487487
488 echo "Getting build id"488 echo "Getting build id"
489 ISO="/data/iso/{flavor}/{release}-desktop-{arch}.iso"489 ISO="/data/iso/{flavor}/{release}-desktop-{arch}.iso"
490490
=== modified file 'jobs/ubiquity/jobs.yaml'
--- jobs/ubiquity/jobs.yaml 2017-02-09 19:15:16 +0000
+++ jobs/ubiquity/jobs.yaml 2017-02-13 16:23:24 +0000
@@ -127,12 +127,16 @@
127 release: '{release}'127 release: '{release}'
128 arch: '{arch}'128 arch: '{arch}'
129 class: 'ubiquity'129 class: 'ubiquity'
130 - grafana-tests-upload:
131 results_type: 'xunit'
132 results_file: 'results/var/local/autopilot/junit/*.xml'
133 info_file: 'global_info.json'
134130
135 publishers:131 publishers:
136 - archive-artifacts132 - archive-artifacts
137 - junit:133 - junit:
138 results: 'results/var/local/autopilot/junit/*.xml'134 results: 'results/var/local/autopilot/junit/*.xml'
135 - postbuildscript:
136 builders:
137 - grafana-tests-upload:
138 results_type: 'xunit'
139 results_file: 'results/var/local/autopilot/junit/*.xml'
140 info_file: 'global_info.json'
141 script-only-if-succeeded: False
142 script-only-if-failed: False

Subscribers

People subscribed via source and target branches