Update ubuntu-mininet-2.3 vagrant definition for private cloud
[releng/builder.git] / jjb-templates / sonar.yaml
1 - job-template:
2     name: 'PROJECT_SHORTNAME-sonar'
3     disabled: false
4
5     project-type: maven
6     node: dynamic_verify
7     jdk: 'openjdk8'
8
9     logrotate:
10         daysToKeep: '7'
11         numToKeep: '10'
12         artifactDaysToKeep: '1'
13         artifactNumToKeep: '1'
14
15     parameters:
16         - project-parameter:
17             project: '{project}'
18
19     scm:
20         - git-scm:
21             credentials-id: '{ssh-credentials}'
22             refspec: ''
23             branch: 'SONAR_BRANCH'
24
25     wrappers:
26         - build-timeout
27         - ssh-agent-credentials:
28             users:
29                 - '{ssh-credentials}'
30
31     triggers:
32         - timed: 'H H * * 6'
33         - gerrit-trigger-patch-sonar:
34             name: 'PROJECT_PATH'
35
36     prebuilders:
37         - wipe-org-opendaylight-repo
38         - jacoco-nojava-workaround
39         - provide-maven-settings:
40             global-settings-file: '{odl-global-settings}'
41             settings-file: '{JENKINS_SETTINGS}'
42
43     maven:
44         maven-name: '{mvn33}'
45         root-pom: 'POM'
46         goals: 'MAVEN_GOALS -Djenkins -Dsonar'
47         maven-opts: 'MAVEN_OPTS'
48         settings: '{JENKINS_SETTINGS}'
49         global-settings: '{odl-global-settings}'
50
51     reporters:
52         - findbugs
53
54     publishers:
55         - sonar:
56             language: 'java'
57             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
58         - email-notification:
59             email-prefix: '[PROJECT_SHORTNAME]'
60         - jacoco-report