Merge "Removing test distribution deploy"
[releng/builder.git] / jjb-templates / sonar.yaml
1 - job-template:
2     name: 'PROJECT-sonar'
3
4     project-type: maven
5     node: dynamic_verify
6     jdk: '{jdk}'
7
8     logrotate:
9         daysToKeep: '7'
10         numToKeep: '10'
11         artifactDaysToKeep: '1'
12         artifactNumToKeep: '1'
13
14     parameters:
15         - project-parameter:
16             project: '{project}'
17
18     scm:
19         - git-scm:
20             credentials-id: '{ssh-credentials}'
21             refspec: ''
22             branch: 'SONAR_BRANCH'
23
24     wrappers:
25         - build-timeout
26         - ssh-agent-credentials:
27             user: '{ssh-credentials}'
28
29     triggers:
30         - timed: 'H H * * *'
31
32     maven:
33         maven-name: '{mvn32}'
34         root-pom: 'POM'
35         goals: 'MAVEN_GOALS -Dsonar'
36         maven-opts: 'MAVEN_OPTS'
37         settings: '{PROJECT-settings}'
38         global-settings: '{odl-global-settings}'
39
40     postbuilders:
41         - jacoco-nojava-workaround
42
43     publishers:
44         - sonar:
45             language: 'java'
46             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
47         - email-notification:
48             email-prefix: '[PROJECT]'
49         - jacoco-report