66390b0d761c9cb1f642d1d2b6c9cb665539d308
[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: '@weekly'
40         - gerrit-trigger-patch-sonar:
41             name: 'ovsdb'
42
43     prebuilders:
44         - shell:
45             !include-raw-escape:
46                 - include-raw-setup-docker.sh
47
48     maven:
49         maven-name: '{mvn33}'
50         root-pom: 'pom.xml'
51         goals: 'clean install -V -Dsonar -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
52         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
53         settings: '{ovsdb-settings}'
54         global-settings: '{odl-global-settings}'
55
56     postbuilders:
57         - inject:
58             properties-file: env.properties
59         - maven-target:
60             maven-version: '{mvn33}'
61             pom: 'pom.xml'
62             goals: 'verify -V -Pintegrationtest -Dsonar -Dskip.karaf.featureTest=true -Dovsdb.controller.address=${{CONTROLLER_IP}} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
63             properties:
64                 - 'ovsdbserver.ipaddress=127.0.0.1'
65                 - 'ovsdbserver.port=6641'
66                 - 'ovsdb.userspace.enabled=yes'
67             settings: '{ovsdb-settings}'
68             global-settings: '{odl-global-settings}'
69         - shell:
70             !include-raw-escape:
71                 - include-raw-cleanup-docker.sh
72         - jacoco-nojava-workaround
73
74     publishers:
75         - sonar:
76             language: 'java'
77             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
78         - email-notification:
79             email-prefix: '[ovsdb]'
80         - jacoco-report