csit-vpp-device.yaml revision 0f4fb0ad
1# Copyright (c) 2019 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14
15- project:
16    name: csit-vpp-device
17    description: 'CSIT jenkins jobs.'
18    os:
19      - 'ubuntu1804'
20    topo:
21      - '1n'
22    arch:
23      - 'skx'
24    jobs:
25      - 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
26      - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
27      - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
28    project: 'csit'
29    branch: 'master'
30    branch-id: 'oper'
31    stream_timed:
32      - master:
33          branch: 'master'
34          branch-id: 'oper'
35    stream:
36      - master:
37          branch: 'master'
38          branch-id: 'oper'
39      - '1810':
40          branch: 'rls1810'
41          branch-id: 'oper-rls1810'
42
43- job-template:
44    name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
45    description: |
46      <ul>
47          <li>objective
48              <ul>
49                  <li>vpp-device verify - per csit gerrit patch
50              </ul>
51          <li>job
52              <ul>
53                  <li>name: <b>csit-vpp-device-{stream}-{os}-{topo}-{arch}</b>
54                  <li>trigger: keyword in comment to csit patch:
55                      <b>csit-devicetest tag_list</b>
56              </ul>
57          <li>test-cases selection
58              <ul>
59                  <li>test-cases selected using trigger keyword followed by tags
60                  <li>all test-cases are labelled with CSIT RF topic tags
61                      defined in <i>csit/docs/tag_documentation.rst</i>
62              </ul>
63          <li>default tags for vpp-device test type
64              <ul>
65                  <li>devicetest
66              </ul>
67          <li>results
68              <ul>
69                  <li>jjb verify: PASS/FAIL
70                  <li>present: no
71                  <li>analyse: no
72              </ul>
73      </ul>
74
75    project-type: freestyle
76    node: 'vpp-csit-device'
77    concurrent: true
78
79    build-discarder:
80      daysToKeep: '{build-days-to-keep}'
81      numToKeep: '{build-num-to-keep}'
82      artifactDaysToKeep: '{build-artifact-days-to-keep}'
83      artifactNumToKeep: '{build-artifact-num-to-keep}'
84
85    parameters:
86      - project-parameter:
87          project: '{project}'
88      - gerrit-parameter:
89          branch: '{branch}'
90      - os-parameter:
91          os: '{os}'
92      - gerrit-refspec-parameter
93      - gerrit-event-type-parameter
94      - gerrit-event-comment-text-parameter
95
96    scm:
97      - gerrit-trigger-scm:
98          credentials-id: 'jenkins-gerrit-credentials'
99          refspec: '$GERRIT_REFSPEC'
100          choosing-strategy: 'gerrit'
101
102    wrappers:
103      - fdio-infra-wrappers:
104          build-timeout: '{build-timeout}'
105
106    triggers:
107      - gerrit:
108          server-name: 'Primary'
109          trigger-on:
110            - comment-added-contains-event:
111                comment-contains-value: 'csit-devicetest'
112          projects:
113            - project-compare-type: 'ANT'
114              project-pattern: '{project}'
115              branches:
116                - branch-compare-type: 'ANT'
117                  branch-pattern: '**/{branch}'
118          skip-vote:
119            successful: true
120            failed: true
121            unstable: true
122            notbuilt: true
123
124    builders:
125      - shell:
126          !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
127
128    publishers:
129      - archive-artifacts:
130          artifacts: 'archive/*.*'
131          latest-only: false
132      - robot:
133          output-path: archive
134          other-files:
135            - '*.*'
136      - fdio-infra-shiplogs:
137          maven-version: 'mvn33-new'
138
139- job-template:
140    name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
141    description: |
142      <ul>
143          <li>objective
144              <ul>
145                  <li>Validate latest vpp build from corresponding branch stored
146                      in nexus against verified CSIT codebase of corresponding
147                      branch.
148              </ul>
149          <li>test-cases selection
150              <ul>
151                  <li>pre-selected test-cases
152                  <li>all test-cases are labelled with CSIT RF topic tags
153                      defined in <i>csit/docs/tag_documentation.rst</i>
154              </ul>
155          <li>default tags for vpp-device test type
156              <ul>
157                  <li>devicetest
158              </ul>
159          <li>results
160              <ul>
161                  <li>jjb verify: PASS/FAIL
162                  <li>present: no
163                  <li>analyse: no
164              </ul>
165      </ul>
166
167    project-type: freestyle
168    node: 'vpp-csit-device'
169    concurrent: false
170
171    build-discarder:
172      daysToKeep: '{build-days-to-keep}'
173      numToKeep: '{build-num-to-keep}'
174      artifactDaysToKeep: '{build-artifact-days-to-keep}'
175      artifactNumToKeep: '{build-artifact-num-to-keep}'
176
177    parameters:
178      - project-parameter:
179          project: '{project}'
180      - gerrit-parameter:
181          branch: '{branch}'
182      - os-parameter:
183          os: '{os}'
184
185    wrappers:
186      - fdio-infra-wrappers-non-activity-timeout:
187          build-timeout: '{build-timeout}'
188
189    triggers:
190      - timed: '0 4 * * 2,6'
191
192      - gerrit-trigger-manually-triggered:
193          comment-trigger-value: 'csit-verify-vpp'
194          name: '{project}'
195          branch: '{branch}'
196
197    builders:
198      - shell:
199          !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
200
201    publishers:
202      - archive-artifacts:
203          artifacts: 'archive/*.*'
204          latest-only: false
205      - robot:
206          output-path: archive
207          other-files:
208            - '*.*'
209      - fdio-infra-shiplogs:
210          maven-version: 'mvn33-new'
211
212- job-template:
213    name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
214    description: |
215      <ul>
216          <li>objective
217              <ul>
218                  <li>Validate CSIT code of corresponding branch against
219                      verified vpp build from corresponding branch.
220              </ul>
221          <li>test-cases selection
222              <ul>
223                  <li>pre-selected test-cases
224                  <li>all test-cases are labelled with CSIT RF topic tags
225                      defined in <i>csit/docs/tag_documentation.rst</i>
226              </ul>
227          <li>default tags for vpp-device test type
228              <ul>
229                  <li>devicetest
230              </ul>
231          <li>results
232              <ul>
233                  <li>jjb verify: PASS/FAIL
234                  <li>present: no
235                  <li>analyse: no
236              </ul>
237      </ul>
238
239    project-type: freestyle
240    node: 'vpp-csit-device'
241    concurrent: false
242
243    build-discarder:
244      daysToKeep: '{build-days-to-keep}'
245      numToKeep: '{build-num-to-keep}'
246      artifactDaysToKeep: '{build-artifact-days-to-keep}'
247      artifactNumToKeep: '{build-artifact-num-to-keep}'
248
249    parameters:
250      - project-parameter:
251          project: '{project}'
252      - gerrit-parameter:
253          branch: '{branch}'
254      - os-parameter:
255          os: '{os}'
256
257    scm:
258      - git-scm:
259          credentials-id: 'jenkins-gerrit-credentials'
260          branch: '{branch}'
261
262    wrappers:
263      - fdio-infra-wrappers-non-activity-timeout:
264          build-timeout: '{build-timeout}'
265
266    triggers:
267      - timed: '0 4 * * 0'
268
269      - gerrit-trigger-manually-triggered:
270          comment-trigger-value: 'csit-vpp-ref-verify'
271          name: '{project}'
272          branch: '{branch}'
273
274    builders:
275      - shell:
276          !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
277
278    publishers:
279      - archive-artifacts:
280          artifacts: 'archive/*.*'
281          latest-only: false
282      - robot:
283          output-path: archive
284          other-files:
285            - '*.*'
286      - fdio-infra-shiplogs:
287          maven-version: 'mvn33-new'
288