Skip to content

Commit

Permalink
Plone 4.3 jenkins-job-builder configuration
Browse files Browse the repository at this point in the history
Add Plone 4.3 {py26, py27} configuration based on jenkins-job-builder.
  • Loading branch information
gforcada committed Jan 31, 2015
1 parent 553ab76 commit 7ec84f4
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 250 deletions.
186 changes: 186 additions & 0 deletions jenkins-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
# YAML based configuration for jobs on jenkins.plone.org.
#
# Use this configuration with jenkins-job-builder:
# https://github.com/openstack-infra/jenkins-job-builder
#
# To run it:
# git clone git@github.com:plone/jenkins.plone.org.git
# (change branch if needed)
# python setup.py develop # to install dependencies and make our code available
# jenkins-jobs --conf jenkins-jobs.ini test jenkins-jobs.yml -o output
#
# After running the above an output folder will be populated with jenkins jobs.
# See jenkins-job options to put into production or your server of choice.

- project:
name: Plone 4.3
python-version:
- '2.7':
pybinary: '$PYTHON27'
- '2.6':
pybinary: '$PYTHON26'
jobs:
- 'plone-4.3-python-{python-version}'


- job-template:
# Plone 4.3 job definition.
# TODO:
# - hudson.tasks.LogRotator
# - JSON format on notifications plugin
# - disk-usage plugin
# - hudson.plugins.git.extensions.impl.PerBuildTag
# - keep quotes on builders shell commands
# - email-ext quite a few things
# - CustomHistory plugin
name: 'plone-4.3-python-{python-version}'
project-type: freestyle
display-name: 'Plone 4.3 - Python {python-version}'
concurrent: true
disabled: false

notifications:
- http:
url: http://localhost/roboto/callback/corecommit?jk_job_id=cfcc93c8589240b493869bcea552f4f7_plone-4.3-python-2.7

parameters:
- text:
name: plonechanges
default: http://jenkins.plone.org/roboto/static/changeset/noset
- string:
name: repo
default: 'no repo'

properties:
- custom-throttle:
total: '0'
enable: '' # false

scm:
- buildout-coredev:
branch: '4.3'

builders:
- shell: |
echo "Save to CHANGES.log"
wget $plonechanges -O CHANGES.log
- shell: |
{pybinary} bootstrap.py -c jenkins.cfg
bin/buildout -c jenkins.cfg
bin/jenkins-alltests -1
- shell: |
i=`ls src`
echo "[sources]" > snapshoot.cfg
for j in $i;
do
cd src/$j;
h=`git log -n1 --pretty=oneline | cut -d " " -f 1`
a=`git remote show origin | grep Fetch | cut -c 14-`
if [[ $a =~ "buildout.coredev.git" ]] ; then echo "SVN $a"; else echo "$j = git $a rev=$h" >> ../../snapshoot.cfg; fi
cd ../..; done
publishers:
- custom-junit

- custom-archive:
glob: 'CHANGES.log'

- custom-email-ext

- robot:
output-path: parts/jenkins-test
report-html: robot_report.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

wrappers:
- custom-workspace-cleanup
- custom-timeout
- custom-port-allocator
- custom-xvfb


###
# MACROS
###

- property:
name: custom-throttle
properties:
- throttle:
max-total: '{total}'
enabled: '{enable}'
option: project

- scm:
name: buildout-coredev
scm:
- git:
url: git://github.com/plone/buildout.coredev.git
branches:
- '{branch}'

- publisher:
name: custom-junit
publishers:
- junit:
results: parts/jenkins-test/testreports/*.xml
keep-long-stdio: false

- publisher:
name: custom-email-ext
publishers:
- email-ext:
recipients: plone-testbot@lists.plone.org
reply-to:
content-type: default
regression: true
failure: false
improvement: true
still-failing: true
fixed: true

- publisher:
name: custom-archive
publishers:
- archive:
artifacts: '{glob}'
allow-empty: 'true'

- wrapper:
name: custom-workspace-cleanup
wrappers:
- workspace-cleanup:
dirmatch: true

- wrapper:
name: custom-timeout
wrappers:
- timeout:
timeout: 180
type: absolute

- wrapper:
name: custom-port-allocator
wrappers:
- port-allocator:
names:
- ZSERVER_PORT
- FTPSERVER_PORT

- wrapper:
name: custom-xvfb
wrappers:
- xvfb:
name: default
screen: 1024x768x24
debug: false
timeout: 0
shutdown: false
Loading

0 comments on commit 7ec84f4

Please sign in to comment.