blob: 37ba67fc6c105ebcefcc99af66b1aa0a9edc09d5 (
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
|
---
- 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: '@daily'
- 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
exclude:
- project: xtestingci
version: '2023.1'
- project: functest
version: '2023.1'
- project: functest-kubernetes
version: '2023.1'
- project: xtestingci
version: 'zed'
- project: functest
version: 'zed'
- project: functest-kubernetes
version: 'zed'
- project: xtestingci
version: 'yoga'
- project: functest
version: 'yoga'
- project: functest-kubernetes
version: 'yoga'
- project: xtestingci
version: 'xena'
- project: functest
version: 'xena'
- project: functest-kubernetes
version: 'xena'
- project: xtestingci
version: 'wallaby'
- project: functest
version: 'wallaby'
- project: functest-kubernetes
version: 'wallaby'
jobs:
- '{project}-{version}-vm'
- view:
name: xtesting-ci-vm
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
regex: ^.*-vm$
|