blob: 0a48eedf5c7b0d5db058fd46baf765f9b103eba2 (
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
|
---
####################################
# job configuration for bottlenecks
####################################
- project:
name: bottlenecks-ci-jobs
project: 'bottlenecks'
# -------------------------------
# BRANCH ANCHORS
# -------------------------------
master: &master
stream: master
branch: '{stream}'
# This is used for common project file storage
gs-pathname: ''
# This is used for different test suite dependent packages storage
gs-packagepath: '/{suite}'
# docker tag used for version control
docker-tag: 'latest'
gambia: &gambia
stream: gambia
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
gs-packagepath: '/{stream}/{suite}'
docker-tag: 'stable'
# -------------------------------
# POD, INSTALLER, AND BRANCH MAPPING
# -------------------------------
# Installers using labels
# CI PODs
# This section should only contain the installers
# that have been switched using labels for slaves
# -------------------------------
pod:
# compass CI PODs
- baremetal:
slave-label: compass-baremetal-master
installer: compass
auto-trigger-name: 'daily-trigger-disabled'
<<: *master
- virtual:
slave-label: compass-virtual-master
installer: compass
auto-trigger-name: 'daily-trigger-disabled'
<<: *master
- baremetal:
slave-label: compass-baremetal-branch
installer: compass
auto-trigger-name: 'daily-trigger-disabled'
<<: *gambia
- virtual:
slave-label: compass-virtual-branch
installer: compass
auto-trigger-name: 'daily-trigger-disabled'
<<: *gambia
# -------------------------------
# None-CI PODs
# -------------------------------
# - orange-pod2:
# slave-label: '{pod}'
# installer: joid
# auto-trigger-name: 'daily-trigger-disabled'
# <<: *fraser
# - orange-pod2:
# slave-label: '{pod}'
# installer: joid
# auto-trigger-name: 'daily-trigger-disabled'
# <<: *master
# -------------------------------------------
suite:
- 'posca_stress_traffic'
- 'posca_stress_ping'
- 'posca_factor_multistack_storage'
- 'posca_factor_multistack_storage_parallel'
- 'posca_feature_moon_resources'
- 'posca_feature_moon_tenants'
- 'posca_feature_vnf_scale_out'
- 'posca_factor_soak_throughputs'
- 'kubestone_deployment_capacity'
jobs:
- 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}'
################################
# job templates
################################
- job-template:
name: 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}'
wrappers:
- build-name:
name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
- timeout:
timeout: 180
abort: true
- fix-workspace-permissions
triggers:
- '{auto-trigger-name}'
parameters:
- project-parameter:
project: '{project}'
branch: '{branch}'
- '{slave-label}-defaults'
- '{installer}-defaults'
- 'bottlenecks-params-{slave-label}'
- string:
name: REPO_DIR
default: "/home/opnfv/bottlenecks"
description: "Directory where the repository is cloned"
- string:
name: DEPLOY_SCENARIO
default: 'os-odl_l2-nofeature-ha'
- string:
name: GERRIT_REFSPEC_DEBUG
default: 'true'
description: "Gerrit refspec for debug."
- string:
name: SUITE_NAME
default: '{suite}'
description: "test suite name."
- string:
name: DOCKER_TAG
default: '{docker-tag}'
description: "docker image tag used for version control"
scm:
- git-scm
builders:
- 'bottlenecks-env-cleanup'
- 'bottlenecks-run-suite'
- 'bottlenecks-workspace-cleanup'
publishers:
- email:
recipients: gabriel.yuyang@huawei.com, liyin11@huawei.com
- email-jenkins-admins-on-failure
########################
# builder macros
########################
- builder:
name: bottlenecks-env-cleanup
builders:
- shell:
!include-raw: ./bottlenecks-cleanup.sh
- builder:
name: bottlenecks-run-suite
builders:
- shell:
!include-raw: ./bottlenecks-run-suite.sh
- builder:
name: bottlenecks-workspace-cleanup
builders:
- shell: |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# delete everything that is in $WORKSPACE
sudo rm -rf $WORKSPACE
####################
# parameter macros
####################
- parameter:
name: 'bottlenecks-params-compass-baremetal-master'
parameters:
- string:
name: BOTTLENECKS_DB_TARGET
default: 'http://testresults.opnfv.org/test/api/v1/results'
description: 'Arguments to use in order to choose the backend DB'
- parameter:
name: 'bottlenecks-params-compass-virtual-master'
parameters:
- string:
name: BOTTLENECKS_DB_TARGET
default: 'http://testresults.opnfv.org/test/api/v1/results'
description: 'Arguments to use in order to choose the backend DB'
- parameter:
name: 'bottlenecks-params-compass-baremetal-branch'
parameters:
- string:
name: BOTTLENECKS_DB_TARGET
default: 'http://testresults.opnfv.org/test/api/v1/results'
description: 'Arguments to use in order to choose the backend DB'
- parameter:
name: 'bottlenecks-params-compass-virtual-branch'
parameters:
- string:
name: BOTTLENECKS_DB_TARGET
default: 'http://testresults.opnfv.org/test/api/v1/results'
description: 'Arguments to use in order to choose the backend DB'
|