Merge "Adding ability to build from different distribution branches"
[releng/builder.git] / jjb / ovsdb / ovsdb-custom.yaml
1 - project:
2     name: ovsdb-custom
3     jobs:
4         - 'ovsdb-sonar'
5
6     project: 'ovsdb'
7     jdk: 'openjdk8'
8
9 - job-template:
10     name: 'ovsdb-sonar'
11
12     project-type: maven
13     node: dynamic_docker
14     jdk: '{jdk}'
15
16     logrotate:
17         daysToKeep: '7'
18         numToKeep: '10'
19         artifactDaysToKeep: '1'
20         artifactNumToKeep: '1'
21
22     parameters:
23         - project-parameter:
24             project: '{project}'
25
26     scm:
27         - git-scm:
28             credentials-id: '{ssh-credentials}'
29             refspec: ''
30             branch: 'master'
31
32     wrappers:
33         - build-timeout
34         - ssh-agent-credentials:
35             users:
36                 - '{ssh-credentials}'
37
38     triggers:
39         - timed: 'H H * * *'
40
41     prebuilders:
42         - shell:
43             !include-raw-escape include-raw-setup-docker.sh
44
45     maven:
46         maven-name: '{mvn33}'
47         root-pom: 'pom.xml'
48         goals: 'clean install -Pjenkins -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar'
49         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
50         settings: '{ovsdb-settings}'
51         global-settings: '{odl-global-settings}'
52
53     postbuilders:
54         - inject:
55             properties-file: env.properties
56         - maven-target:
57             maven-version: '{mvn33}'
58             pom: 'pom.xml'
59             goals: 'verify -Pintegrationtest,coverage,jenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dsonar -Dovsdb.controller.address=${{CONTROLLER_IP}}'
60             properties:
61                 - 'ovsdbserver.ipaddress=127.0.0.1'
62                 - 'ovsdbserver.port=6641'
63                 - 'ovsdb.userspace.enabled=yes'
64             settings: '{ovsdb-settings}'
65             global-settings: '{odl-global-settings}'
66         - shell:
67             !include-raw-escape include-raw-cleanup-docker.sh
68         - jacoco-nojava-workaround
69
70     publishers:
71         - sonar:
72             language: 'java'
73             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
74         - email-notification:
75             email-prefix: '[ovsdb]'
76         - jacoco-report