Merge "fix L3 regression for new-netvirt CSIT with stable/mitaka"
[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             server-name: '{server-name}'
42             name: 'ovsdb'
43
44     builders:
45         - shell:
46             !include-raw-escape:
47                 - include-raw-setup-docker.sh
48         - inject:
49             properties-file: env.properties
50         - shell:
51             !include-raw-escape:
52                 - include-setup-hwvtep-docker.sh
53         - maven-target:
54             maven-version: 'mvn33'
55             pom: 'pom.xml'
56             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'
57             java-opts:
58                 - '-Xmx1024m -XX:MaxPermSize=256m'
59             settings: 'ovsdb-settings'
60             settings-type: cfp
61             global-settings: 'odl-global-settings'
62             global-settings-type: cfp
63         - inject:
64             properties-file: env.properties
65         - maven-target:
66             maven-version: 'mvn33'
67             pom: 'pom.xml'
68             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 '
69             properties:
70                 - 'ovsdbserver.ipaddress=127.0.0.1'
71                 - 'ovsdbserver.port=6641'
72                 - 'ovsdb.userspace.enabled=yes'
73             settings: 'ovsdb-settings'
74             settings-type: cfp
75             global-settings: 'odl-global-settings'
76             global-settings-type: cfp
77         - maven-target:
78             maven-version: 'mvn33'
79             # We should switch to the recommended configuration of sonar once
80             # JJB adds support for configurating the Sonar wrapper:
81             #    http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
82             goals: 'sonar:sonar -V -B -Djenkins -Dsonar -Dsonar.host.url=https://sonar.opendaylight.org -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
83             settings: 'ovsdb-settings'
84             settings-type: cfp
85             global-settings: 'odl-global-settings'
86             global-settings-type: cfp
87         - shell:
88             !include-raw-escape:
89                 - include-raw-cleanup-docker.sh
90         - jacoco-nojava-workaround
91
92     publishers:
93         - email-notification:
94             email-recipients: '{email-recipients}'
95             email-prefix: '[ovsdb]'
96         - jacoco-report
97         - opendaylight-infra-shiplogs:
98             maven-version: 'mvn33'