93ca471a9b4babe0d36f21b5a1a37e77dc1e113d
[releng/builder.git] / jjb / tcpmd5 / tcpmd5.yaml
1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
3 # autobuilder.
4
5 # ODL Releng build templates
6 - project:
7     name: tcpmd5
8     jobs:
9         - 'tcpmd5-verify-{stream}'
10         - 'tcpmd5-merge-{stream}'
11         - 'tcpmd5-daily-{stream}'
12
13     # stream:    branch with - in place of / (eg. stable-helium)
14     # branch:    branch (eg. stable/helium)
15     stream:
16         - master:
17             branch: 'master'
18         - stable-helium:
19             branch: 'stable/helium'
20
21
22 # For the Job templates below replace instances of:
23 # PROJECT with your project name (eg. controller)
24 # MAVEN_GOALS with your maven goals to build
25 # MAVEN_OPTS with your maven options to build
26
27 - job-template:
28     name: 'tcpmd5-verify-{stream}'
29
30     # Job template for ODL verify jobs
31     #
32     # The purpose of this job template is to setup a ODL verify job
33     #
34     # Required Variables:
35     #     stream:    branch with - in place of / (eg. stable-helium)
36     #     branch:    branch (eg. stable/helium)
37
38     project-type: maven
39     node: dynamic_verify
40
41     logrotate:
42         daysToKeep: '{build-days-to-keep}'
43         numToKeep: '{build-num-to-keep}'
44         artifactDaysToKeep: '{build-artifact-days-to-keep}'
45         artifactNumToKeep: '{build-artifact-num-to-keep}'
46
47     parameters:
48         - gerrit-parameter:
49             branch: '{branch}'
50
51     scm:
52         - gerrit-trigger-scm:
53             credentials-id: '{ssh-credentials}'
54             scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/tcpmd5.git'
55             refspec: '$GERRIT_REFSPEC'
56
57     wrappers:
58         - ssh-agent-credentials:
59             user: '{ssh-credentials}'
60
61     triggers:
62         - gerrit-trigger-patch-submitted:
63             name: 'tcpmd5'
64             branch: '{branch}'
65
66     maven:
67         maven-name: '{mvn30}'
68         root-pom: 'pom.xml'
69         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
70         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
71         settings: '{tcpmd5-settings}'
72         global-settings: '{odl-global-settings}'
73
74     publishers:
75         - email-notification:
76             email-prefix: '[tcpmd5]'
77
78 - job-template:
79     name: 'tcpmd5-merge-{stream}'
80
81     # Job template for ODL merge jobs
82     #
83     # The purpose of this job template is to setup a ODL merge job
84     # and deploy artifacts to Nexus.
85     #
86     # Required Variables:
87     #     stream:    branch with - in place of / (eg. stable-helium)
88     #     branch:    branch (eg. stable/helium)
89
90     project-type: maven
91     node: dynamic_merge
92
93     logrotate:
94         daysToKeep: '{build-days-to-keep}'
95         numToKeep: '{build-num-to-keep}'
96         artifactDaysToKeep: '{build-artifact-days-to-keep}'
97         artifactNumToKeep: '{build-artifact-num-to-keep}'
98
99     scm:
100         - gerrit-trigger-scm:
101             credentials-id: '{ssh-credentials}'
102             scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/tcpmd5.git'
103             refspec: ''
104
105     wrappers:
106         - ssh-agent-credentials:
107             user: '{ssh-credentials}'
108
109     triggers:
110         - gerrit-trigger-patch-merged:
111             name: 'tcpmd5'
112             branch: '{branch}'
113
114     maven:
115         maven-name: '{mvn30}'
116         root-pom: 'pom.xml'
117         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
118         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
119         settings: '{tcpmd5-settings}'
120         global-settings: '{odl-global-settings}'
121
122     publishers:
123         - email-notification:
124             email-prefix: '[tcpmd5]'
125         - maven-deploy:
126             id: ''
127             url: ''
128             unique-version: true
129             deploy-unstable: false
130
131 - job-template:
132     name: 'tcpmd5-daily-{stream}'
133
134     # Job template for daily builders
135     #
136     # The purpose of this job template is to setup a daily/nightly
137     # builder and pushes to Sonar analysis.
138     #
139     # Required Variables:
140     #     stream:    branch with - in place of / (eg. stable-helium)
141     #     branch:    branch (eg. stable/helium)
142
143     project-type: maven
144     node: dynamic_verify
145
146     logrotate:
147         daysToKeep: '{build-days-to-keep}'
148         numToKeep: '{build-num-to-keep}'
149         artifactDaysToKeep: '{build-artifact-days-to-keep}'
150         artifactNumToKeep: '{build-artifact-num-to-keep}'
151
152     scm:
153         - git-scm:
154             credentials-id: '{ssh-credentials}'
155             scm-url: 'ssh://jenkins-releng@git.opendaylight.org:29418/tcpmd5.git'
156             refspec: ''
157             branch: '{branch}'
158
159     wrappers:
160         - ssh-agent-credentials:
161             user: '{ssh-credentials}'
162
163     triggers:
164         - timed: 'H H * * *'
165
166     maven:
167         maven-name: '{mvn30}'
168         root-pom: 'pom.xml'
169         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean install'
170         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
171         settings: '{tcpmd5-settings}'
172         global-settings: '{odl-global-settings}'
173
174     publishers:
175         - email-notification:
176             email-prefix: '[tcpmd5]'
177         - sonar:
178             branch: '{stream}'
179             language: 'java'
180             maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'