Merge "Images with pre-loaded devstack pips and yums"
[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     properties:
17         - opendaylight-infra-properties:
18             build-days-to-keep: 7
19
20     parameters:
21         - opendaylight-infra-parameters:
22             project: '{project}'
23             branch: '{branch}'
24             refspec: 'refs/heads/{branch}'
25             artifacts: '{archive-artifacts}'
26
27     scm:
28         - git-scm:
29             refspec: ''
30             branch: 'master'
31
32     wrappers:
33         - opendaylight-infra-wrappers:
34             build-timeout: '{build-timeout}'
35
36     triggers:
37         - timed: 'H H * * 6'
38         - gerrit-trigger-patch-sonar:
39             server-name: '{server-name}'
40             name: 'ovsdb'
41
42     builders:
43         - shell:
44             !include-raw-escape:
45                 - include-raw-setup-docker.sh
46         - inject:
47             properties-file: env.properties
48         - shell:
49             !include-raw-escape:
50                 - include-setup-hwvtep-docker.sh
51         - maven-target:
52             maven-version: 'mvn33'
53             pom: 'pom.xml'
54             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'
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: '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 '
67             properties:
68                 - 'ovsdbserver.ipaddress=127.0.0.1'
69                 - 'ovsdbserver.port=6641'
70                 - 'ovsdb.userspace.enabled=yes'
71             settings: 'ovsdb-settings'
72             settings-type: cfp
73             global-settings: 'odl-global-settings'
74             global-settings-type: cfp
75         - maven-target:
76             maven-version: 'mvn33'
77             # We should switch to the recommended configuration of sonar once
78             # JJB adds support for configurating the Sonar wrapper:
79             #    http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
80             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'
81             settings: 'ovsdb-settings'
82             settings-type: cfp
83             global-settings: 'odl-global-settings'
84             global-settings-type: cfp
85         - shell:
86             !include-raw-escape:
87                 - include-raw-cleanup-docker.sh
88         - jacoco-nojava-workaround
89
90     publishers:
91         - email-notification:
92             email-recipients: '{email-recipients}'
93             email-prefix: '[ovsdb]'
94         - jacoco-report
95         - opendaylight-infra-shiplogs:
96             maven-version: 'mvn33'