Merge "Fix broken log collections"
[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-1c-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           os-cloud: '{os-cloud}'
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: '{schedule-saturday}'
40       - gerrit-trigger-patch-sonar:
41           gerrit-server-name: '{gerrit-server-name}'
42           name: 'ovsdb'
43
44     builders:
45       - shell: !include-raw-escape: setup-docker.sh
46       - inject:
47           properties-file: env.properties
48       - shell: !include-raw-escape: include-setup-hwvtep-docker.sh
49       - maven-target:
50           maven-version: 'mvn33'
51           pom: 'pom.xml'
52           goals: >
53               clean install dependency:tree -V -B -Dsonar
54               -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
55               -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
56           java-opts:
57             - '-Xmx1024m -XX:MaxPermSize=256m'
58           settings: 'ovsdb-settings'
59           settings-type: cfp
60           global-settings: 'global-settings'
61           global-settings-type: cfp
62       - inject:
63           properties-file: env.properties
64       - maven-target:
65           maven-version: 'mvn33'
66           pom: 'pom.xml'
67           goals: >
68               verify -V -B -Pintegrationtest -Dsonar
69               -Dskip.karaf.featureTest=true
70               -Dovsdb.controller.address=${{CONTROLLER_IP}}
71               Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
72           properties:
73             - 'ovsdbserver.ipaddress=127.0.0.1'
74             - 'ovsdbserver.port=6641'
75             - 'ovsdb.userspace.enabled=yes'
76           settings: 'ovsdb-settings'
77           settings-type: cfp
78           global-settings: 'global-settings'
79           global-settings-type: cfp
80       - maven-target:
81           maven-version: 'mvn33'
82           # We should switch to the recommended configuration of sonar once
83           # JJB adds support for configurating the Sonar wrapper:
84           #    http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
85           goals: >
86               sonar:sonar -V -B -Djenkins -Dsonar
87               -Dsonar.host.url=https://sonar.opendaylight.org
88               -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
89           settings: 'ovsdb-settings'
90           settings-type: cfp
91           global-settings: 'global-settings'
92           global-settings-type: cfp
93       - shell: !include-raw-escape: cleanup-docker.sh
94       - jacoco-nojava-workaround
95
96     publishers:
97       - email-notification:
98           email-recipients: '{email-recipients}'
99           email-prefix: '[ovsdb]'
100       - lf-jacoco-report
101       - lf-infra-publish