-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
jenkins.cfg
58 lines (54 loc) · 1.79 KB
/
jenkins.cfg
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
# ----------------------------------------------------------------------------
# JENKINS BUILDOUT FOR PLONE COREDEV
# ----------------------------------------------------------------------------
# Jenkins buildout to run tests and code coverage for buildout.coredev on
# the jenkins.plone.org CI server.
#
# $ bin/buildout -c jenkins.cfg
# $ bin/alltests --xml
# $ bin/alltests-at --xml
#
# ----------------------------------------------------------------------------
[buildout]
extends = core.cfg
always-accept-server-certificate = true
parts +=
releaser
package-in-auto-checkout
add-package-to-auto-checkout
# On Jenkins we always do a fresh checkout before a build. Though, for build
# pipelines, we have to move buildout directories around and then we have to
# run buildout in order to update some paths. In those scenarios we do not
# want mr.developer to update the checked out sources because it would change
# the code we are testing.
always-checkout = false
[releaser]
eggs += plone.releaser
check-manifest
[package-in-auto-checkout]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
if grep $1 ${buildout:directory}/checkouts.cfg > /dev/null
then
echo "Package $1 found in checkouts.cfg"
else
echo "Package $1 not found in checkouts.cfg"
echo "FAIL BUILD"
fi
output = ${buildout:directory}/bin/package-in-auto-checkout
mode = 755
[add-package-to-auto-checkout]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
if grep $1 ${buildout:directory}/checkouts.cfg > /dev/null
then
echo "Package $1 found in checkouts.cfg"
else
echo "Package $1 not found in checkouts.cfg"
echo " $1" >> checkouts.cfg
echo "Added $1 to checkouts.cfg"
fi
output = ${buildout:directory}/bin/add-package-to-auto-checkout
mode = 755