refactor email recipients to parameter with default value
[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         - inject:
48             properties-file: env.properties
49         - shell:
50             !include-raw-escape:
51                 - include-setup-hwvtep-docker.sh
52         - maven-target:
53             maven-version: 'mvn33'
54             pom: 'pom.xml'
55             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'
56             java-opts:
57                 - '-Xmx1024m -XX:MaxPermSize=256m'
58             settings: 'ovsdb-settings'
59             settings-type: cfp
60             global-settings: 'odl-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: '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 '
68             properties:
69                 - 'ovsdbserver.ipaddress=127.0.0.1'
70                 - 'ovsdbserver.port=6641'
71                 - 'ovsdb.userspace.enabled=yes'
72             settings: 'ovsdb-settings'
73             settings-type: cfp
74             global-settings: 'odl-global-settings'
75             global-settings-type: cfp
76         - maven-target:
77             maven-version: 'mvn33'
78             # We should switch to the recommended configuration of sonar once
79             # JJB adds support for configurating the Sonar wrapper:
80             #    http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
81             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'
82             settings: 'ovsdb-settings'
83             settings-type: cfp
84             global-settings: 'odl-global-settings'
85             global-settings-type: cfp
86         - shell:
87             !include-raw-escape:
88                 - include-raw-cleanup-docker.sh
89         - jacoco-nojava-workaround
90
91     publishers:
92         - email-notification:
93             email-recipients: '{email-recipients}'
94             email-prefix: '[ovsdb]'
95         - jacoco-report
96         - opendaylight-infra-shiplogs:
97             maven-version: 'mvn33'