summaryrefslogtreecommitdiffstats
path: root/jjb/csit/csit-vpp-device.yaml
blob: 2365d1c4b4da081fd3d40cc12d0779e3cc61fcdb (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
# Copyright (c) 2018 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


- project:
    name: csit-vpp-device
    description: 'CSIT jenkins jobs.'
    os:
      - 'ubuntu1804'
    topo:
      - '1n'
    arch:
      - 'skx'
    jobs:
      - 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
    project: 'csit'
    branch: 'master'
    branch-id: 'oper'
    stream:
      - master:
          branch: 'master'
          branch-id: 'oper'
      - '1810':
          branch: 'rls1810'
          branch-id: 'oper-rls1810'

- job-template:
    name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
    description: |
      <ul>
          <li>objective
              <ul>
                  <li>vpp-device verify - per csit gerrit patch
              </ul>
          <li>job
              <ul>
                  <li>name: <b>csit-vpp-device-{stream}-{os}-{topo}-{arch}</b>
                  <li>trigger: keyword in comment to csit patch:
                      <b>csit-devicetest tag_list</b>
              </ul>
          <li>test-cases selection
              <ul>
                  <li>test-cases selected using trigger keyword followed by tags
                  <li>all test-cases are labelled with CSIT RF topic tags
                      defined in <i>csit/docs/tag_documentation.rst</i>
              </ul>
          <li>default tags for vpp-device test type
              <ul>
                  <li>devicetest
              </ul>
          <li>results
              <ul>
                  <li>jjb verify: PASS/FAIL
                  <li>present: no
                  <li>analyse: no
              </ul>
      </ul>

    project-type: freestyle
    node: 'vpp-csit-device'
    concurrent: true

    build-discarder:
      daysToKeep: '{build-days-to-keep}'
      numToKeep: '{build-num-to-keep}'
      artifactDaysToKeep: '{build-artifact-days-to-keep}'
      artifactNumToKeep: '{build-artifact-num-to-keep}'

    parameters:
      - project-parameter:
          project: '{project}'
      - gerrit-parameter:
          branch: '{branch}'
      - os-parameter:
          os: '{os}'
      - gerrit-refspec-parameter
      - gerrit-event-type-parameter
      - gerrit-event-comment-text-parameter

    scm:
      - gerrit-trigger-scm:
          credentials-id: 'jenkins-gerrit-credentials'
          refspec: '$GERRIT_REFSPEC'
          choosing-strategy: 'gerrit'

    wrappers:
      - fdio-infra-wrappers:
          build-timeout: '{build-timeout}'

    triggers:
      - gerrit:
          server-name: 'Primary'
          trigger-on:
            - comment-added-contains-event:
                comment-contains-value: 'csit-devicetest'
          projects:
            - project-compare-type: 'ANT'
              project-pattern: '{project}'
              branches:
                - branch-compare-type: 'ANT'
                  branch-pattern: '**/{branch}'
          skip-vote:
            successful: true
            failed: true
            unstable: true
            notbuilt: true

    builders:
      - shell:
          !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh

    publishers:
      - archive-artifacts:
          artifacts: 'archive/*.*'
          latest-only: false
      - robot:
          output-path: archive
          other-files:
            - '*.*'
      - fdio-infra-shiplogs:
          maven-version: 'mvn33-new'