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