Merge "CIMANAGE-5: csit-vpp-verify-weekly scheduled job"
[ci-management.git] / jjb / csit / csit-vpp-functional.yaml
1 - project:
2     name: csit-vpp-functional
3     description: 'Run VPP functional tests on VIRL.'
4
5     jobs:
6         - 'csit-vpp-perf-hw-{type}'
7         - 'csit-vpp-functional-virl'
8         - 'csit-vpp-verify-weekly'
9
10     project: 'csit'
11     branch: 'master'
12     type:
13         - all
14
15 - job-template:
16     name: 'csit-vpp-functional-virl'
17
18     project-type: freestyle
19     node: verify
20     concurrent: true
21
22     logrotate:
23         daysToKeep: '{build-days-to-keep}'
24         numToKeep: '{build-num-to-keep}'
25         artifactDaysToKeep: '{build-artifact-days-to-keep}'
26         artifactNumToKeep: '{build-artifact-num-to-keep}'
27
28     parameters:
29         - project-parameter:
30             project: '{project}'
31         - gerrit-parameter:
32             branch: '{branch}'
33
34     scm:
35         - gerrit-trigger-scm:
36             credentials-id: '{ssh-credentials}'
37             refspec: '$GERRIT_REFSPEC'
38             choosing-strategy: 'gerrit'
39
40     wrappers:
41         - ssh-agent-credentials:
42             users:
43                 - '{ssh-credentials}'
44
45     triggers:
46         - gerrit-trigger-patch-submitted:
47             name: '{project}'
48             branch: '{branch}'
49
50     builders:
51         - shell:
52             !include-raw-escape include-raw-csit-vpp-functional-virl.sh
53
54     publishers:
55         - archive-artifacts:
56             artifacts: 'report.html, log.html, output.xml'
57             latest-only: false
58
59         - robot-report:
60             output-path: ''
61
62 - job-template:
63     name: 'csit-vpp-perf-hw-{type}'
64
65     project-type: freestyle
66     node: verify
67     concurrent: false
68
69     logrotate:
70         daysToKeep: '{build-days-to-keep}'
71         numToKeep: '{build-num-to-keep}'
72         artifactDaysToKeep: '{build-artifact-days-to-keep}'
73         artifactNumToKeep: '{build-artifact-num-to-keep}'
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: '{branch}'
80         - type-parameter:
81             type: '{type}'
82
83     scm:
84         - gerrit-trigger-scm:
85             credentials-id: '{ssh-credentials}'
86             refspec: '$GERRIT_REFSPEC'
87             choosing-strategy: 'gerrit'
88
89     wrappers:
90         - ssh-agent-credentials:
91             users:
92                 - '{ssh-credentials}'
93
94     triggers:
95         - gerrit-trigger-manually-triggered:
96             name: '{project}'
97             branch: '{branch}'
98             comment-trigger-value: 'verify-perf-{type}'
99
100     builders:
101         - shell:
102             !include-raw-escape jjb/csit/include-raw-csit-vpp-perf-hw.sh
103
104     publishers:
105         - archive-artifacts:
106             artifacts: 'report.html, log.html, output.xml'
107             latest-only: false
108
109         - robot-report:
110             output-path: ''
111
112 - job-template:
113     name: 'csit-vpp-verify-weekly'
114
115     project-type: freestyle
116     node: verify
117     concurrent: false
118
119     logrotate:
120         daysToKeep: '{build-days-to-keep}'
121         numToKeep: '{build-num-to-keep}'
122         artifactDaysToKeep: '{build-artifact-days-to-keep}'
123         artifactNumToKeep: '{build-artifact-num-to-keep}'
124
125     parameters:
126         - project-parameter:
127             project: '{project}'
128         - gerrit-parameter:
129             branch: '{branch}'
130
131     scm:
132         - git-scm:
133             credentials-id: '{ssh-credentials}'
134             branch: 'master'
135
136     wrappers:
137         - ssh-agent-credentials:
138             users:
139                 - '{ssh-credentials}'
140
141     triggers:
142         - timed: '0 4 * * 0'
143
144         - gerrit-trigger-manually-triggered:
145             comment-trigger-value: 'csit-vpp-ref-verify'
146             name: '{project}'
147             branch: '{branch}'
148
149     builders:
150         - shell:
151             !include-raw-escape jjb/csit/include-raw-csit-vpp-verify-weekly.sh
152
153     publishers:
154         - archive-artifacts:
155             artifacts: 'report.html, log.html, output.xml'
156             latest-only: false
157
158         - robot-report:
159             output-path: ''
160
161         - git:
162                push-only-if-success: true
163                tags:
164                    - tag:
165                        remote: origin
166                        name: "csit-verified"
167                        message: "Verified CSIT version for VPP testing"
168                        create-tag: true
169                        update-tag: true
170
171 - parameter:
172     name: test-type-parameter
173
174     parameters:
175         - string:
176             name: TYPE
177             default: '{type}'
178             description: "Test TYPE parameter if not given by trigger"