/
jobs.yml
223 lines (203 loc) · 6.41 KB
/
jobs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
#
# Use this configuration with jenkins-job-builder:
# https://github.com/openstack-infra/jenkins-job-builder
#
# Macros and reference configuration
- job-template: &job-template
name: 'generic'
project-type: freestyle
display-name: 'Generic'
concurrent: true
disabled: false
logrotate:
daysToKeep: 60
numToKeep: 100
artifactDaysToKeep: 3
artifactNumToKeep: 3
properties:
- github:
url: https://github.com/ploneintranet/ploneintranet
- build-blocker:
use-blocking-blocker: '{shall-block}'
blocking-jobs:
- "{block-regex}"
scm:
- git:
url: https://github.com/ploneintranet/ploneintranet.git
branches:
- '{branch_spec}'
wipe-workspace: '{wipe-workspace}'
builders:
- shell: |
#!/bin/bash
./bootstrap_jenkins.sh || exit 1
PLONE_CSRF_DISABLED=true ./bin/jenkins-test {test-args}
publishers:
- cobertura:
report-file: "parts/test/coverage.xml"
only-stable: "false"
fail-no-reports: "false"
fail-unhealthy: "false"
fail-unstable: "false"
targets:
- files:
healthy: 800000
unhealthy: 0
failing: 0
- method:
healthy: 800000
unhealthy: 0
failing: 0
- junit:
results: parts/test/testreports/*.xml
keep-long-stdio: false
- github-notifier
wrappers:
- xvfb:
name: Xvfb
screen: 1200x900x24
timeout: 0
- port-allocator:
names:
- ZSERVER_PORT
- FTPSERVER_PORT
- publisher:
name: custom-robot
publishers:
- robot:
output-path: parts/test
report-html: robot_rebort.html
log-html: robot_log.html
output-xml: robot_output.xml
pass-threshold: 100.0
unstable-threshold: 80.0
only-critical: true
other-files:
- robot_*.png
#############################################################################
# Job configurations
#############################################################################
# Complete ploneintranet tests, for master and for everything. On each commit
# and PR. Master reuses workspace
- project:
name: Ploneintranet
branch:
- master:
branch_spec: 'origin/master'
wipe-workspace: false
- 'all.branches.even.broken':
branch_spec: '**'
wipe-workspace: true
shall-block: true
block-regex: '^Plone Intranet complete.*'
test-args: ''
jobs:
- 'complete.{name}.{branch}.{wipe-workspace}'
- job-template:
name: 'complete.{name}.{branch}.{wipe-workspace}'
display-name: 'Plone Intranet complete {branch}'
triggers:
- github
- github-pull-request
publishers:
- custom-robot:
<<: *job-template
# Complete and clean test of ploneintranet. Once a day
- project:
name: Ploneintranet.thorough
branch:
- master:
branch_spec: 'origin/master'
wipe-workspace: true
shall-block: false
block-regex: 'xxx'
test-args: '--all'
jobs:
- 'clean.{name}.{branch}.{wipe-workspace}'
- job-template:
name: 'clean.{name}.{branch}.{wipe-workspace}'
display-name: 'Plone Intranet clean {branch}'
triggers:
- timed: '@daily'
publishers:
- custom-robot:
<<: *job-template
# Quicktests of single 'virtual' packages. For master reusing workspaces,
# for all branches always with clean workspaces. Trigger on each commit.
- project:
name: Ploneintranet.quicktests
package:
- ploneintranet.activitystream:
test-args: '-s ploneintranet.activitystream'
- ploneintranet.attachments:
test-args: '-s ploneintranet.attachments'
- ploneintranet.core:
test-args: '-s ploneintranet.core'
- ploneintranet.docconv:
test-args: '-s ploneintranet.docconv'
- ploneintranet.invitations:
test-args: '-s ploneintranet.invitations'
- ploneintranet.messaging:
test-args: '-s ploneintranet.messaging'
- ploneintranet.microblog:
test-args: '-s ploneintranet.microblog'
- ploneintranet.network:
test-args: '-s ploneintranet.network'
- ploneintranet.notifications:
test-args: '-s ploneintranet.notifications'
- ploneintranet.pagerank:
test-args: '-s ploneintranet.pagerank'
- ploneintranet.simplesharing:
test-args: '-s ploneintranet.simplesharing'
- ploneintranet.todo:
test-args: '-s ploneintranet.todo'
- ploneintranet.workspace:
test-args: '-s ploneintranet.workspace'
branch:
- master:
branch_spec: 'origin/master'
wipe-workspace: false
- 'all.branches.even.broken':
branch_spec: '**'
wipe-workspace: true
shall-block: false
block-regex: 'xxx'
jobs:
- 'quick.{name}.{package}.{branch}'
- job-template:
name: 'quick.{name}.{package}.{branch}'
display-name: 'Plone Intranet {package} Quick test {branch}'
triggers:
- github
- github-pull-request
<<: *job-template
# Quicktests of single 'virtual' packages. For master reusing workspaces,
# for all branches always with clean workspaces. Trigger on each commit.
# This time with robots
- project:
name: Ploneintranet.quicktests.robots
package:
- ploneintranet.socialsuite:
test-args: '-s ploneintranet.socialsuite'
- ploneintranet.suite:
test-args: '-s ploneintranet.suite'
branch:
- master:
branch_spec: 'origin/master'
wipe-workspace: false
- 'all.branches.even.broken':
branch_spec: '**'
wipe-workspace: true
shall-block: false
block-regex: 'xxx'
jobs:
- 'quick.robot.{name}.{package}.{branch}'
- job-template:
name: 'quick.robot.{name}.{package}.{branch}'
display-name: 'Plone Intranet {package} Quick test {branch}'
triggers:
- github
- github-pull-request
publishers:
- custom-robot:
<<: *job-template