Rework of streams/branches logic
[releng/builder.git] / jjb-templates / distribution.yaml
1 - job-template:
2     name: 'PROJECT-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'
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
42     maven:
43         maven-name: '{mvn33}'
44         root-pom: 'pom.xml'
45         goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
46         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
47         settings: '{integration-settings}'
48         global-settings: '{odl-global-settings}'
49
50     publishers:
51         - email-notification:
52             email-prefix: '[{project}]'
53         - maven-deploy:
54             id: ''
55             unique-version: true
56             deploy-unstable: false