Merge "Fix yamllint for systemmetrics"
[releng/builder.git] / jjb / ovsdb / ovsdb-sonar.yaml
1 ---
2 - project:
3     name: ovsdb-sonar
4     jobs:
5       - 'ovsdb-sonar'
6
7     project: 'ovsdb'
8     jdk: 'openjdk8'
9
10 - job-template:
11     name: 'ovsdb-sonar'
12
13     project-type: freestyle
14     node: centos7-docker-2c-4g
15     jdk: '{jdk}'
16
17     properties:
18       - opendaylight-infra-properties:
19           build-days-to-keep: 7
20
21     parameters:
22       - opendaylight-infra-parameters:
23           project: '{project}'
24           branch: '{branch}'
25           refspec: 'refs/heads/{branch}'
26           artifacts: '{archive-artifacts}'
27
28     scm:
29       - git-scm:
30           refspec: ''
31           branch: 'master'
32
33     wrappers:
34       - opendaylight-infra-wrappers:
35           build-timeout: '{build-timeout}'
36
37     triggers:
38       - timed: 'H H * * 6'
39       - gerrit-trigger-patch-sonar:
40           server-name: '{server-name}'
41           name: 'ovsdb'
42
43     builders:
44       - shell: !include-raw-escape: include-raw-setup-docker.sh
45       - inject:
46           properties-file: env.properties
47       - shell: !include-raw-escape: include-setup-hwvtep-docker.sh
48       - maven-target:
49           maven-version: 'mvn33'
50           pom: 'pom.xml'
51           goals: >
52               clean install dependency:tree -V -B -Dsonar
53               -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
54               -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
55           java-opts:
56             - '-Xmx1024m -XX:MaxPermSize=256m'
57           settings: 'ovsdb-settings'
58           settings-type: cfp
59           global-settings: 'odl-global-settings'
60           global-settings-type: cfp
61       - inject:
62           properties-file: env.properties
63       - maven-target:
64           maven-version: 'mvn33'
65           pom: 'pom.xml'
66           goals: >
67               verify -V -B -Pintegrationtest -Dsonar
68               -Dskip.karaf.featureTest=true
69               -Dovsdb.controller.address=${{CONTROLLER_IP}}
70               Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
71           properties:
72             - 'ovsdbserver.ipaddress=127.0.0.1'
73             - 'ovsdbserver.port=6641'
74             - 'ovsdb.userspace.enabled=yes'
75           settings: 'ovsdb-settings'
76           settings-type: cfp
77           global-settings: 'odl-global-settings'
78           global-settings-type: cfp
79       - maven-target:
80           maven-version: 'mvn33'
81           # We should switch to the recommended configuration of sonar once
82           # JJB adds support for configurating the Sonar wrapper:
83           #    http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
84           goals: >
85               sonar:sonar -V -B -Djenkins -Dsonar
86               -Dsonar.host.url=https://sonar.opendaylight.org
87               -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
88           settings: 'ovsdb-settings'
89           settings-type: cfp
90           global-settings: 'odl-global-settings'
91           global-settings-type: cfp
92       - shell: !include-raw-escape: include-raw-cleanup-docker.sh
93       - jacoco-nojava-workaround
94
95     publishers:
96       - email-notification:
97           email-recipients: '{email-recipients}'
98           email-prefix: '[ovsdb]'
99       - jacoco-report
100       - opendaylight-infra-shiplogs:
101           maven-version: 'mvn33'