Merge "Add JUnit configuration to CSIT int jobs"
[ci-management.git] / jjb / integration / integration-templates-csit.yaml
1 ---
2 - job-template:
3     name: '{project-name}-{stream}-verify-csit-{functionality}'
4     disabled: false
5
6     project-type: freestyle
7     build-node: 'ubuntu1604-docker-8c-8g'
8     node: '{build-node}'
9
10     properties:
11       - lf-infra-properties:
12           project: 'integration'
13           build-days-to-keep: '{build-days-to-keep}'
14
15     parameters:
16       - infra-parameters:
17           project: 'integration'
18           branch: '{branch}'
19           refspec: 'refs/heads/{branch}'
20           artifacts: '{archive-artifacts}'
21       - integration-test-plan:
22           test-plan: 'plans/{project-name}/{functionality}'
23       - integration-test-options:
24           test-options: '{robot-options}'
25
26     scm:
27       - gerrit-trigger-scm:
28           refspec: '$GERRIT_REFSPEC'
29           choosing-strategy: 'gerrit'
30           submodule-recursive: '{submodule-recursive}'
31
32     wrappers:
33       - lf-infra-wrappers:
34           build-timeout: '{build-timeout}'
35           jenkins-ssh-credential: '{jenkins-ssh-credential}'
36
37     triggers:
38       - gerrit-trigger-patch-submitted:
39           server: '{server-name}'
40           project: 'integration'
41           branch: '{branch}'
42           files: 'test/csit/**/{project-name}/**'
43
44     builders:
45       - integration-install-robotframework
46       - inject:
47           properties-file: 'env.properties'
48       - integration-run-test
49
50     publishers:
51       - integration-robot:
52           unstable-if: 0.0
53           pass-if: 100.0
54       - lf-infra-publish
55
56 - job-template:
57     name: '{project-name}-{stream}-verify-csit-{functionality}-testng'
58     disabled: false
59
60     project-type: freestyle
61     build-node: 'ubuntu1604-docker-8c-8g'
62     node: '{build-node}'
63
64     properties:
65       - lf-infra-properties:
66           project: 'integration'
67           build-days-to-keep: '{build-days-to-keep}'
68
69     parameters:
70       - infra-parameters:
71           project: 'integration'
72           branch: '{branch}'
73           refspec: 'refs/heads/{branch}'
74           artifacts: '{archive-artifacts}'
75       - integration-test-plan:
76           test-plan: 'plans/{project-name}/{functionality}'
77       - integration-test-options:
78           test-options: '{robot-options}'
79       - html-publisher-dir:
80           html-dir: '{html-dir}'
81       - html-publisher-files:
82           html-files: '{html-files}'
83
84     scm:
85       - gerrit-trigger-scm:
86           refspec: '$GERRIT_REFSPEC'
87           choosing-strategy: 'gerrit'
88           submodule-recursive: '{submodule-recursive}'
89
90     wrappers:
91       - lf-infra-wrappers:
92           build-timeout: '{build-timeout}'
93           jenkins-ssh-credential: '{jenkins-ssh-credential}'
94
95     triggers:
96       - gerrit-trigger-patch-submitted:
97           server: '{server-name}'
98           project: 'integration'
99           branch: '{branch}'
100           files: 'test/csit/**/{project-name}/**'
101
102     builders:
103       - integration-install-robotframework
104       - inject:
105           properties-file: 'env.properties'
106       - integration-run-test
107
108     publishers:
109       - integration-robot:
110           unstable-if: 0.0
111           pass-if: 100.0
112       - lf-infra-publish
113       - testng:
114           pattern: archives/testng-results.xml
115           escape-test-description: true
116           escape-exception-msg: true
117           show-failed-builds: true
118       - html-publisher:
119           allow-missing: false
120           dir: '{html-dir}'
121           files: '{html-files}'
122           keep-all: false
123           link-to-last-build: false
124           name: ExtentReport
125       - junit:
126           results: archives/testng-results.xml
127           health-scale-factor: 1.0
128
129 - job-template:
130     name: '{project-name}-{stream}-csit-{functionality}'
131     disabled: false
132
133     project-type: freestyle
134     build-node: 'ubuntu1604-docker-8c-8g'
135     node: '{build-node}'
136
137     properties:
138       - lf-infra-properties:
139           project: 'integration'
140           build-days-to-keep: '{build-days-to-keep}'
141
142     parameters:
143       - infra-parameters:
144           project: 'integration'
145           branch: '{branch}'
146           refspec: 'refs/heads/{branch}'
147           artifacts: '{archive-artifacts}'
148       - integration-test-plan:
149           test-plan: 'plans/{project-name}/{functionality}'
150       - integration-test-options:
151           test-options: '{robot-options}'
152
153     scm:
154       - gerrit-trigger-scm:
155           refspec: ''
156           choosing-strategy: 'default'
157           submodule-recursive: '{submodule-recursive}'
158
159     wrappers:
160       - lf-infra-wrappers:
161           build-timeout: '{build-timeout}'
162           jenkins-ssh-credential: '{jenkins-ssh-credential}'
163
164     triggers:
165       - gerrit-trigger-patch-merged:
166           server: '{server-name}'
167           project: 'integration'
168           branch: '{branch}'
169           files: 'test/csit/**/{project-name}/**'
170       - timed: '@daily'
171       - reverse:
172           jobs: '{obj:trigger_jobs}'
173
174     builders:
175       - integration-install-robotframework
176       - inject:
177           properties-file: 'env.properties'
178       - integration-run-test
179
180     publishers:
181       - integration-robot:
182           unstable-if: 0.0
183           pass-if: 100.0
184       - lf-infra-publish