b42b40258bf3cf6f0de86fd1d677e97a02d896de
[ci-management.git] / jjb / policy / policy-csit-jobs.yaml
1 ---
2 - job-template:
3     name: "{project-name}-{stream}-project-csit-{functionality}"
4     disabled: false
5     project-type: freestyle
6     build-node: "ubuntu1804-docker-8c-8g"
7     node: "{build-node}"
8     recipients: ""
9     java-version: "openjdk11"
10     python-version: python3
11
12     properties:
13       - lf-infra-properties:
14           project: "{project}"
15           build-days-to-keep: "{build-days-to-keep}"
16
17     parameters:
18       - infra-parameters:
19           project: "{project}"
20           branch: "{branch}"
21           refspec: "refs/heads/{branch}"
22           artifacts: "{archive-artifacts}"
23       - integration-test-options:
24           test-options: "{functionality}"
25
26     scm:
27       - gerrit-trigger-scm:
28           refspec: "$GERRIT_REFSPEC"
29           choosing-strategy: "default"
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       - timed: "@daily"
39       - reverse:
40           jobs: "{obj:trigger_jobs}"
41
42     builders:
43       - lf-infra-pre-build
44       - lf-update-java-alternatives:
45           java-version: "{java-version}"
46       - integration-run-project-test
47
48     publishers:
49       - integration-project-robot:
50           unstable-if: 0.0
51           pass-if: 100.0
52       - lf-infra-publish
53       - email:
54           recipients: "{recipients}"
55           notify-every-unstable-build: false
56           send-to-individuals: true
57
58 - job-template:
59     name: "{project-name}-{stream}-project-csit-verify-{functionality}"
60     disabled: false
61
62     project-type: freestyle
63     build-node: "ubuntu1804-docker-8c-8g"
64     node: "{build-node}"
65     recipients: ""
66     java-version: "openjdk11"
67     python-version: python3
68
69     properties:
70       - lf-infra-properties:
71           project: "{project}"
72           build-days-to-keep: "{build-days-to-keep}"
73
74     parameters:
75       - infra-parameters:
76           project: "{project}"
77           branch: "{branch}"
78           refspec: "refs/heads/{branch}"
79           artifacts: "{archive-artifacts}"
80       - integration-test-options:
81           test-options: "{functionality}"
82
83     scm:
84       - gerrit-trigger-scm:
85           refspec: "$GERRIT_REFSPEC"
86           choosing-strategy: "gerrit"
87           submodule-recursive: "{submodule-recursive}"
88
89     wrappers:
90       - lf-infra-wrappers:
91           build-timeout: "{build-timeout}"
92           jenkins-ssh-credential: "{jenkins-ssh-credential}"
93
94     triggers:
95       - gerrit-trigger-patch-submitted:
96           server: "{server-name}"
97           project: "{project}"
98           branch: "{branch}"
99           files: "**/csit/**"
100
101     builders:
102       - lf-infra-pre-build
103       - lf-update-java-alternatives:
104           java-version: "{java-version}"
105       - integration-run-project-test
106
107     publishers:
108       - integration-project-robot:
109           unstable-if: 0.0
110           pass-if: 100.0
111       - lf-infra-publish
112       - email:
113           recipients: "{recipients}"
114           notify-every-unstable-build: false
115           send-to-individuals: true