Merge "Remove old matrix type verify job"
[releng/builder.git] / jjb / ovsdb / ovsdb-sonar.yaml
1 - project:
2     name: ovsdb-sonar
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: centos7-docker-2c-4g
14     jdk: '{jdk}'
15
16     logrotate:
17         daysToKeep: '7'
18         numToKeep: '10'
19         artifactDaysToKeep: '1'
20         artifactNumToKeep: '1'
21
22     parameters:
23         - opendaylight-infra-parameters:
24             project: '{project}'
25             branch: '{branch}'
26             refspec: 'refs/heads/{branch}'
27             artifacts: '{archive-artifacts}'
28
29     scm:
30         - git-scm:
31             refspec: ''
32             branch: 'master'
33
34     wrappers:
35         - opendaylight-infra-wrappers:
36             build-timeout: '{build-timeout}'
37
38     triggers:
39         - timed: 'H H * * 6'
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 dependency:tree -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         settings-type: cfp
55         global-settings: 'odl-global-settings'
56         global-settings-type: cfp
57
58     postbuilders:
59         - inject:
60             properties-file: env.properties
61         - maven-target:
62             maven-version: '{mvn33}'
63             pom: 'pom.xml'
64             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 '
65             properties:
66                 - 'ovsdbserver.ipaddress=127.0.0.1'
67                 - 'ovsdbserver.port=6641'
68                 - 'ovsdb.userspace.enabled=yes'
69             settings: 'ovsdb-settings'
70             settings-type: cfp
71             global-settings: 'odl-global-settings'
72             global-settings-type: cfp
73         - shell:
74             !include-raw-escape:
75                 - include-raw-cleanup-docker.sh
76         - jacoco-nojava-workaround
77
78     publishers:
79         - sonar:
80             language: 'java'
81             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
82         - email-notification:
83             email-prefix: '[ovsdb]'
84         - jacoco-report
85         - archive-build:
86             maven-version: '{mvn33}'