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