Add customer netvirt-sonar job
[releng/builder.git] / jjb-templates / distribution.yaml
1 - job-template:
2     name: 'PROJECT_SHORTNAME-distribution-{stream}'
3
4     # Required variables:
5     #     stream:    release stream (eg. stable-lithium or beryllium)
6     #     branch:    git branch (eg. stable/lithium or master)
7
8     project-type: maven
9     node: dynamic_merge
10     jdk: '{jdk}'
11
12     logrotate:
13         daysToKeep: '{build-days-to-keep}'
14         numToKeep: '{build-num-to-keep}'
15         artifactDaysToKeep: '{build-artifact-days-to-keep}'
16         artifactNumToKeep: '{build-artifact-num-to-keep}'
17
18     parameters:
19         - project-parameter:
20             project: 'integration/distribution'
21
22     scm:
23         - git-scm:
24             credentials-id: '{ssh-credentials}'
25             refspec: ''
26             branch: '{branch}'
27
28     wrappers:
29         - build-timeout
30         - ssh-agent-credentials:
31             users:
32                 - '{ssh-credentials}'
33
34     triggers:
35         - reverse:
36             jobs: '{project}-merge-{stream}'
37             result: 'success'
38
39     prebuilders:
40         - wipe-org-opendaylight-repo
41         - provide-maven-settings:
42             global-settings-file: '{odl-global-settings}'
43             settings-file: '{JENKINS_SETTINGS}'
44
45     maven:
46         maven-name: '{mvn33}'
47         root-pom: 'pom.xml'
48         goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
49         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
50         settings: '{integration-settings}'
51         global-settings: '{odl-global-settings}'
52
53     publishers:
54         - email-notification:
55             email-prefix: '[{project}]'
56         - maven-deploy:
57             id: ''
58             unique-version: true
59             deploy-unstable: false