blob: c61c2459cfe07cbd7761f992a07f67232b597df4 (
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
|
####################################
# 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'
danube: &danube
stream: danube
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'
<<: *danube
- virtual:
slave-label: compass-virtual-branch
installer: compass
auto-trigger-name: 'daily-trigger-disabled'
<<: *danube
#--------------------------------
# None-CI PODs
#--------------------------------
# - orange-pod2:
# slave-label: '{pod}'
# installer: joid
# auto-trigger-name: 'daily-trigger-disabled'
# <<: *danube
# - orange-pod2:
# slave-label: '{pod}'
# installer: joid
# auto-trigger-name: 'daily-trigger-disabled'
# <<: *master
#--------------------------------------------
suite:
- 'posca_stress_traffic'
- 'posca_stress_ping'
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
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'
publishers:
- email:
recipients: gabriel.yuyang@huawei.com, liyin11@huawei.com
########################
# 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
####################
# 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'
|