Merge "Bug 2474: Migrate yangtools build to use releng"
[releng/builder.git] / jjb / yangtools / yangtools.yaml
1 # ODL Releng build templates
2 - project:
3     name: yangtools
4     jobs:
5         - 'yangtools-merge-{stream}'
6         - 'yangtools-daily-{stream}'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13         - stable-helium:
14             branch: 'stable/helium'
15
16     project: 'yangtools'
17
18
19 # For the Job templates below replace instances of:
20 # PROJECT with your project name (eg. controller)
21 # MAVEN_GOALS with your maven goals to build
22 # MAVEN_OPTS with your maven options to build
23
24 - job-template:
25     name: 'yangtools-merge-{stream}'
26
27     # Job template for ODL merge jobs
28     #
29     # The purpose of this job template is to setup a ODL merge job
30     # and deploy artifacts to Nexus.
31     #
32     # Required Variables:
33     #     stream:    branch with - in place of / (eg. stable-helium)
34     #     branch:    branch (eg. stable/helium)
35
36     project-type: maven
37     node: dynamic_merge
38
39     logrotate:
40         daysToKeep: '{build-days-to-keep}'
41         numToKeep: '{build-num-to-keep}'
42         artifactDaysToKeep: '{build-artifact-days-to-keep}'
43         artifactNumToKeep: '{build-artifact-num-to-keep}'
44
45     parameters:
46         - project-parameter:
47             project: '{project}'
48
49     scm:
50         - gerrit-trigger-scm:
51             credentials-id: '{ssh-credentials}'
52             refspec: ''
53             choosing-strategy: 'default'
54
55     wrappers:
56         - ssh-agent-credentials:
57             user: '{ssh-credentials}'
58
59     triggers:
60         - gerrit-trigger-patch-merged:
61             name: 'yangtools'
62             branch: '{branch}'
63
64     maven:
65         maven-name: '{mvn32}'
66         root-pom: 'pom.xml'
67         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
68         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
69         settings: '{yangtools-settings}'
70         global-settings: '{odl-global-settings}'
71
72     publishers:
73         - email-notification:
74             email-prefix: '[yangtools]'
75         - maven-deploy:
76             id: ''
77             unique-version: true
78             deploy-unstable: false
79
80 - job-template:
81     name: 'yangtools-daily-{stream}'
82
83     # Job template for daily builders
84     #
85     # The purpose of this job template is to setup a daily/nightly
86     # builder and pushes to Sonar analysis.
87     #
88     # Required Variables:
89     #     stream:    branch with - in place of / (eg. stable-helium)
90     #     branch:    branch (eg. stable/helium)
91
92     project-type: maven
93     node: dynamic_verify
94
95     logrotate:
96         daysToKeep: '{build-days-to-keep}'
97         numToKeep: '{build-num-to-keep}'
98         artifactDaysToKeep: '{build-artifact-days-to-keep}'
99         artifactNumToKeep: '{build-artifact-num-to-keep}'
100
101     parameters:
102         - project-parameter:
103             project: '{project}'
104
105     scm:
106         - git-scm:
107             credentials-id: '{ssh-credentials}'
108             refspec: ''
109             branch: '{branch}'
110
111     wrappers:
112         - ssh-agent-credentials:
113             user: '{ssh-credentials}'
114
115     triggers:
116         - timed: 'H H * * *'
117
118     maven:
119         maven-name: '{mvn32}'
120         root-pom: 'pom.xml'
121         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
122         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
123         settings: '{yangtools-settings}'
124         global-settings: '{odl-global-settings}'
125
126     publishers:
127         - email-notification:
128             email-prefix: '[yangtools]'
129         - sonar:
130             branch: '{stream}'
131             language: 'java'
132             maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'