ci-management-jobs.yaml revision 21316a6a
1- project:
2    name: ci-management-jobs
3    jobs:
4        - 'ci-management-verify-jjb'
5        - 'ci-management-merge-jjb'
6
7    project: ci-management
8    branch: master
9
10- job-template:
11    name: ci-management-verify-jjb
12
13    project-type: freestyle
14    node: jjb
15    concurrent: true
16
17    logrotate:
18        daysToKeep: 30
19        numToKeep: 10
20        artifactDaysToKeep: -1
21        artifactNumToKeep: 5
22
23    parameters:
24        - project-parameter:
25            project: '{project}'
26
27    scm:
28        - gerrit-trigger-scm:
29            credentials-id: 'jenkins-gerrit-credentials'
30            refspec: '$GERRIT_REFSPEC'
31            choosing-strategy: 'gerrit'
32
33    wrappers:
34        - fdio-infra-wrappers:
35            build-timeout: '{build-timeout}'
36
37    triggers:
38        - gerrit-trigger-patch-submitted:
39            name: '{project}'
40            branch: '{branch}'
41
42    builders:
43        - shell: |
44            jenkins-jobs test --recursive -o job_output jjb/
45        - ci-management-check-unicode
46
47    publishers:
48        - archive-artifacts:
49            artifacts: 'job_output/*'
50
51- job-template:
52    name: 'ci-management-merge-jjb'
53
54    project-type: freestyle
55    node: jjb
56
57    logrotate:
58        daysToKeep: 30
59        numToKeep: 40
60        artifactDaysToKeep: -1
61        artifactNumToKeep: 5
62
63    parameters:
64        - project-parameter:
65            project: '{project}'
66
67    scm:
68        - gerrit-trigger-scm:
69            credentials-id: 'jenkins-gerrit-credentials'
70            refspec: ''
71            choosing-strategy: 'default'
72
73    wrappers:
74        - fdio-infra-wrappers:
75            build-timeout: '{build-timeout}'
76
77    triggers:
78        - gerrit-trigger-patch-merged:
79            name: '{project}'
80            branch: '{branch}'
81
82    builders:
83        - shell:
84            !include-raw-escape: include-raw-jjb-update.sh
85
86- job-template:
87    name: ci-management-verify-zuul
88
89    project-type: freestyle
90    node: jjb
91    concurrent: true
92
93    logrotate:
94        daysToKeep: 30
95        numToKeep: 10
96        artifactDaysToKeep: -1
97        artifactNumToKeep: 5
98
99    scm:
100        - zuul-trigger-scm:
101            credentials-id: 'jenkins-gerrit-credentials'
102            refspec: '$ZUUL_REF'
103            commit: '$ZUUL_COMMIT'
104
105    wrappers:
106        - fdio-infra-wrappers:
107            build-timeout: '{build-timeout}'
108
109    builders:
110        - shell:
111            !include-raw-escape: include-raw-test-zuul.sh
112
113- job-template:
114    name: ci-management-merge-zuul
115
116    project-type: freestyle
117    node: jjb
118
119    logrotate:
120        daysToKeep: 30
121        numToKeep: 40
122        artifactDaysToKeep: -1
123        artifactNumToKeep: 5
124
125    scm:
126        - zuul-trigger-scm:
127            credentials-id: 'jenkins-gerrit-credentials'
128            refspec: ''
129            commit: 'origin/$ZUUL_BRANCH'
130
131    wrappers:
132        - fdio-infra-wrappers:
133            build-timeout: '{build-timeout}'
134
135    builders:
136        - shell:
137            !include-raw-escape: include-raw-test-zuul.sh
138        - shell:
139            !include-raw-escape: include-raw-merge-zuul.sh
140
141- job-template:
142    name: ci-management-verify-nodepool
143
144    project-type: freestyle
145    node: np
146    concurrent: true
147
148    logrotate:
149        daysToKeep: 30
150        numToKeep: 10
151        artifactDaysToKeep: -1
152        artifactNumToKeep: 5
153
154    scm:
155        - zuul-trigger-scm:
156            credentials-id: 'jenkins-gerrit-credentials'
157            refspec: '$ZUUL_REF'
158            commit: '$ZUUL_COMMIT'
159
160    wrappers:
161        - fdio-infra-wrappers:
162            build-timeout: '{build-timeout}'
163
164    builders:
165        - shell:
166            !include-raw-escape: include-raw-test-nodepool.sh
167
168- job-template:
169    name: ci-management-merge-nodepool
170
171    project-type: freestyle
172    node: np
173
174    logrotate:
175        daysToKeep: 30
176        numToKeep: 40
177        artifactDaysToKeep: -1
178        artifactNumToKeep: 5
179
180    scm:
181        - zuul-trigger-scm:
182            credentials-id: 'jenkins-gerrit-credentials'
183            refspec: ''
184            commit: 'origin/$ZUUL_BRANCH'
185
186    wrappers:
187        - fdio-infra-wrappers:
188            build-timeout: '{build-timeout}'
189
190    builders:
191        - shell:
192            !include-raw-escape: include-raw-test-nodepool.sh
193        - shell:
194            !include-raw-escape: include-raw-merge-nodepool.sh
195