Migrate maven to freestyle for sonar
[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: freestyle
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     builders:
44         - shell:
45             !include-raw-escape:
46                 - include-raw-setup-docker.sh
47         - maven-target:
48             maven-version: '{mvn33}'
49             pom: 'pom.xml'
50             goals: 'clean install dependency:tree -V -B -Dsonar -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
51             java-opts:
52                 - '-Xmx1024m -XX:MaxPermSize=256m'
53             settings: 'ovsdb-settings'
54             settings-type: cfp
55             global-settings: 'odl-global-settings'
56             global-settings-type: cfp
57         - inject:
58             properties-file: env.properties
59         - maven-target:
60             maven-version: '{mvn33}'
61             pom: 'pom.xml'
62             goals: 'verify -V -B -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             settings-type: cfp
69             global-settings: 'odl-global-settings'
70             global-settings-type: cfp
71         - shell:
72             !include-raw-escape:
73                 - include-raw-cleanup-docker.sh
74         - jacoco-nojava-workaround
75
76     publishers:
77         - sonar:
78             language: 'java'
79             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
80         - email-notification:
81             email-prefix: '[ovsdb]'
82         - jacoco-report
83         - opendaylight-infra-shiplogs:
84             maven-version: '{mvn33}'