blob: ba72b2922326ee3b493ae24a9e896cabc5790ed8 (
plain)
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
---
- scm:
name: xtesting-ci-vm-scm
scm:
- git:
url: '{url}'
branches:
- '{ref}'
- builder:
name: xtesting-ci-vm-builder
builders:
- shell: |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee \
/etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get -o DPkg::Lock::Timeout=300 update && \
DEBIAN_FRONTEND=noninteractive sudo apt-get \
-o DPkg::Lock::Timeout=300 install python3-diskimage-builder -y
if [ "{project}" == "xtestingci" ]; then
export ELEMENTS_PATH=$(pwd)/elements
else
git init ansible-role-xtesting
(cd ansible-role-xtesting &&
git fetch --tags https://github.com/collivier/ansible-role-xtesting.git {role-version} &&
git checkout FETCH_HEAD)
export ELEMENTS_PATH=$(pwd)/elements:$(pwd)/ansible-role-xtesting/elements
fi
export DIB_XTESTINGCI_VERSION={role-version}
disk-image-create --image-size 20 -o {project}-{version}.qcow2 debian vm {project}
gsutil cp {project}-{version}.qcow2 gs://artifacts.opnfv.org/{project}/{project}-{version}.qcow2
rm -rf {project}-{version}.qcow2 {project}-{version}.d
- trigger:
name: xtesting-ci-vm-trigger
triggers:
- timed: '@weekly'
- parameter:
name: xtesting-ci-vm-parameter
parameters:
- label:
name: node
default: 'opnfv-build'
- job-template:
name: '{project}-{version}-vm'
scm:
- xtesting-ci-vm-scm:
url: '{url}'
ref: '{ref}'
triggers:
- xtesting-ci-vm-trigger
parameters:
- xtesting-ci-vm-parameter
properties:
- build-blocker:
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- '^.*-vm$'
builders:
- xtesting-ci-vm-builder:
project: '{project}'
version: '{version}'
role-version: '{role-version}'
- project:
name: 'xtesting-ci-vm'
project:
- xtestingci:
url: https://github.com/collivier/ansible-role-xtesting.git
- xtesting:
url: https://git.opnfv.org/functest-xtesting.git
- functest:
url: https://git.opnfv.org/functest.git
- functest-kubernetes:
url: https://git.opnfv.org/functest-kubernetes.git
version:
- latest:
ref: master
role-version: master
- '2023.1':
ref: stable/2023.1
role-version: master
- zed:
ref: stable/zed
role-version: master
- yoga:
ref: stable/yoga
role-version: master
- xena:
ref: stable/xena
role-version: master
- wallaby:
ref: stable/wallaby
role-version: master
- leguer:
ref: stable/leguer
role-version: master
- kali:
ref: stable/kali
role-version: master
- jerma:
ref: stable/jerma
role-version: master
- v1.26:
ref: stable/v1.26
role-version: master
- v1.25:
ref: stable/v1.25
role-version: master
- v1.24:
ref: stable/v1.24
role-version: master
- v1.23:
ref: stable/v1.23
role-version: master
- v1.22:
ref: stable/v1.22
role-version: master
exclude:
- project: xtestingci
version: '2023.1'
- project: functest
version: '2023.1'
- project: functest-kubernetes
version: '2023.1'
- project: xtestingci
version: zed
- project: functest-kubernetes
version: zed
- project: xtestingci
version: yoga
- project: functest-kubernetes
version: yoga
- project: xtestingci
version: xena
- project: functest-kubernetes
version: xena
- project: xtestingci
version: wallaby
- project: functest-kubernetes
version: wallaby
- project: xtestingci
version: leguer
- project: xtesting
version: leguer
- project: functest-kubernetes
version: leguer
- project: xtestingci
version: kali
- project: xtesting
version: kali
- project: functest-kubernetes
version: kali
- project: xtestingci
version: jerma
- project: xtesting
version: jerma
- project: functest-kubernetes
version: jerma
- project: xtestingci
version: v1.26
- project: functest
version: v1.26
- project: xtesting
version: v1.26
- project: xtestingci
version: v1.25
- project: functest
version: v1.25
- project: xtesting
version: v1.25
- project: xtestingci
version: v1.24
- project: functest
version: v1.24
- project: xtesting
version: v1.24
- project: xtestingci
version: v1.23
- project: functest
version: v1.23
- project: xtesting
version: v1.23
- project: xtestingci
version: v1.22
- project: functest
version: v1.22
- project: xtesting
version: v1.22
jobs:
- '{project}-{version}-vm'
- view:
name: xtesting-ci-vm
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
regex: ^.*-vm$
|