d491220154ba23cb4a73ef2d6dc702cc2c5880f4
[ci-management.git] / jjb / csit / csit-hc2vpp.yaml
1 # Copyright (c) 2020 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-hc2vpp
17     description: 'jenkins jobs verify Hc2vpp functional and performance tests'
18     jobs:
19       - 'csit-hc2vpp-verify-func-{stream}-{os}'
20     project: 'csit'
21     branch: 'master'
22     build-artifact-num-to-keep: 10
23     os:
24       - ubuntu1804:
25           repo-os-part: 'ubuntu.bionic.main'
26       - ubuntu1604:
27           repo-os-part: 'ubuntu.xenial.main'
28
29     stream:
30       - '1904':
31           branch: 'rls1904'
32           branch-id: 'oper-rls1904'
33       - '1908':
34           branch: 'rls1908'
35           branch-id: 'oper-rls1908'
36
37 - job-template:
38     name: 'csit-hc2vpp-verify-func-{stream}-{os}'
39
40     project-type: freestyle
41     node: '{os}-basebuild-4c-4g'
42     concurrent: true
43     archive-artifacts: 'archive/*.*'
44     latest-only: false
45
46     build-discarder:
47       daysToKeep: '{build-days-to-keep}'
48       numToKeep: '{build-num-to-keep}'
49       artifactDaysToKeep: '{build-artifact-days-to-keep}'
50       artifactNumToKeep: '{build-artifact-num-to-keep}'
51
52     parameters:
53       - project-parameter:
54           project: '{project}'
55       - os-parameter:
56           os: '{os}'
57       - stream-parameter:
58           stream: '{stream}'
59       - gerrit-parameter:
60           branch: '{branch}'
61       - string:
62           name: ARCHIVE_ARTIFACTS
63           default: '{archive-artifacts}'
64           description: Artifacts to archive to the logs server.
65
66     scm:
67       - gerrit-trigger-scm:
68           credentials-id: 'jenkins-gerrit-credentials'
69           refspec: '$GERRIT_REFSPEC'
70           choosing-strategy: 'gerrit'
71
72     wrappers:
73       - fdio-infra-wrappers:
74           build-timeout: '{build-timeout}'
75
76     triggers:
77       - gerrit-trigger-manually-triggered:
78           comment-trigger-value: 'verify-hc2vpp-func'
79           name: '{project}'
80           branch: '{branch}'
81
82     builders:
83       - shell:
84           !include-raw-escape:
85           - ../scripts/csit/hc2vpp-verify-func.sh
86
87     publishers:
88       - email-notification:
89           email-prefix: '[csit]'
90
91       - robot-report:
92           output-path: 'archive'
93
94       - fdio-infra-shiplogs:
95           maven-version: 'mvn36'