1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
# vim: sw=4 ts=4 et
# QA Jenkins Jobs
# Copyright 2018 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
- project:
name: 'iso-testing-server-live'
dev-release:
- 'bionic'
node: 'iso-testing'
jobs:
- 'ubuntu-{dev-release}-live-server-amd64-iso-download'
- 'ubuntu-{dev-release}-live-server-amd64-iso-static-validation'
- 'ubuntu-{dev-release}-live-server-amd64-smoke-default'
- 'ubuntu-{dev-release}-live-server-amd64-smoke-edge'
- job-template:
name: 'ubuntu-{dev-release}-live-server-amd64-iso-download'
description: |
This job download the latest daily server iso
Defined in lp:qa-jenkins-jobs
parameters:
- download-sleep
node: 'iso-testing'
triggers:
- timed: "H 10 * * *"
builders:
- download-iso:
release: '{dev-release}'
variant: 'live-server'
arch: 'amd64'
flavor: 'ubuntu-server'
- job-template:
name: 'ubuntu-{dev-release}-live-server-amd64-iso-static-validation'
description: |
This job runs static validation on a server iso
Defined in lp:qa-jenkins-jobs
node: 'iso-testing'
triggers:
- reverse:
jobs: 'ubuntu-{dev-release}-live-server-amd64-iso-download'
result: 'success'
builders:
- validate-iso:
iso: '/data/iso/ubuntu-server/{dev-release}-live-server-amd64.iso'
release: '{dev-release}'
arch: 'amd64'
variant: 'live-server'
publishers:
- email:
recipients: 'server-crew-qa@lists.canonical.com michael.hudson@canonical.com'
- job-template:
name: 'ubuntu-{dev-release}-live-server-amd64-smoke-default'
description: |
Run the default iso test on a live-server image
Defined in lp:qa-jenkins-jobs
parameters:
- string:
name: QA_JENKINS_JOBS_BRANCH
default: lp:qa-jenkins-jobs
description: "Launchpad branch of qa-jenkins-jobs from which to pick the scripts from."
node: 'iso-testing'
triggers:
- reverse:
jobs: 'ubuntu-{dev-release}-live-server-amd64-iso-static-validation'
result: 'success'
builders:
- clear-artifacts:
- echo-media-info:
iso: '/var/cache/utah/iso/{dev-release}-live-server-amd64.iso'
- branch-bzr-project:
project-url: '$QA_JENKINS_JOBS_BRANCH'
project-name: 'qa-jenkins-jobs'
- run-iso-test:
release: '{dev-release}'
variant: 'live-server'
arch: 'amd64'
test: 'default'
- write-parameters-file:
release: '{dev-release}'
variant: 'live-server'
arch: 'amd64'
flavor: 'ubuntu-server'
publishers:
- archive-artifacts
- trigger-mark-pending-current
- mark-junit
- email:
recipients: 'server-crew-qa@lists.canonical.com michael.hudson@canonical.com'
- job-template:
name: 'ubuntu-{dev-release}-live-server-amd64-smoke-edge'
description: |
Run live-server iso test with edge snap of subiquity
Defined in lp:qa-jenkins-jobs
node: 'iso-testing'
triggers:
- reverse:
jobs: 'ubuntu-{dev-release}-live-server-amd64-smoke-default'
result: 'success'
builders:
- clear-artifacts:
- shell: |
#!/bin/bash -x
ISO_NAME="edge-{dev-release}-live-server-amd64.iso"
git clone https://github.com/CanonicalLtd/subiquity
https_proxy=http://squid.internal:3128/ \
sudo ./subiquity/scripts/make-edge-iso.sh \
/var/cache/utah/iso/{dev-release}-live-server-amd64.iso \
"$ISO_NAME"
if [ ! -f "$ISO_NAME" ]; then
exit 1
fi
bzr branch lp:qa-jenkins-jobs
./qa-jenkins-jobs/scripts/iso-testing/run-iso-test.sh \
--test default --variant live-server \
--iso "$WORKSPACE/$ISO_NAME"
publishers:
- archive-artifacts
- email:
recipients: 'server-crew-qa@lists.canonical.com michael.hudson@canonical.com'
|