refactor email recipients to parameter with default value
[releng/builder.git] / jjb / ovsdb / ovsdb-full-integration.yaml
1 - project:
2     name: ovsdb-full-integration
3     jobs:
4         - 'ovsdb-daily-full-integration-{stream}'
5
6     stream:
7         - carbon:
8             branch: 'master'
9             jdk: openjdk8
10             jdks:
11                 - openjdk8
12         - boron:
13             branch: 'stable/boron'
14             jdk: openjdk8
15             jdks:
16                 - openjdk8
17         - beryllium:
18             branch: 'stable/beryllium'
19             jdk: openjdk8
20             jdks:
21                 - openjdk8
22
23     project: 'ovsdb'
24     archive-artifacts: '*.log'
25
26 - builder:
27     name: ovsdb-run-it
28     builders:
29         - maven-target:
30             maven-version: '{maven-version}'
31             pom: '{pomFile}'
32             goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}}'
33             properties:
34                 - 'ovsdbserver.ipaddress=127.0.0.1'
35                 - 'ovsdbserver.port=6641'
36                 - 'ovsdb.userspace.enabled=yes'
37                 - 'maven.repo.local=/tmp/r'
38                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
39                 - 'stream={stream}'
40             java-opts:
41                 - '-Xmx1024m -XX:MaxPermSize=256m'
42             settings: 'ovsdb-settings'
43             settings-type: cfp
44             global-settings: 'odl-global-settings'
45             global-settings-type: cfp
46
47 - builder:
48     name: run-library-it
49     builders:
50         - ovsdb-run-it:
51             maven-version: '{maven-version}'
52             stream: '{stream}'
53             pomFile: 'library/it/pom.xml'
54             logfile: '{OVS_VERSION}-libraryIT.log'
55
56 - builder:
57     name: run-southbound-it
58     builders:
59         - ovsdb-run-it:
60             maven-version: '{maven-version}'
61             stream: '{stream}'
62             pomFile: 'southbound/southbound-it/pom.xml'
63             logfile: '{OVS_VERSION}-southboundIT.log'
64
65 - builder:
66     name: run-hwvtepsouthbound-it
67     builders:
68         - ovsdb-run-it:
69             maven-version: '{maven-version}'
70             stream: '{stream}'
71             pomFile: 'hwvtepsouthbound/hwvtepsouthbound-it/pom.xml'
72             logfile: '{OVS_VERSION}-hwvtepsouthboundIT.log'
73
74 - builder:
75     name: run-ovsdb-it
76     builders:
77         - inject:
78             properties-content: OVS_VERSION={OVS_VERSION}
79         - shell:
80             !include-raw-escape:
81                 - include-raw-setup-docker.sh
82         - inject:
83             properties-file: env.properties
84         - run-southbound-it:
85             OVS_VERSION: '{OVS_VERSION}'
86             maven-version: '{maven-version}'
87             stream: '{stream}'
88         - shell:
89             !include-raw-escape:
90                 - include-setup-hwvtep-docker.sh
91         - run-library-it:
92             OVS_VERSION: '{OVS_VERSION}'
93             maven-version: '{maven-version}'
94             stream: '{stream}'
95         - run-hwvtepsouthbound-it:
96             OVS_VERSION: '{OVS_VERSION}'
97             maven-version: '{maven-version}'
98             stream: '{stream}'
99         - shell:
100             !include-raw-escape:
101                 - include-raw-cleanup-docker.sh
102
103 - job-template:
104     name: 'ovsdb-daily-full-integration-{stream}'
105
106     project-type: freestyle
107     node: centos7-docker-2c-4g
108     jdk: '{jdk}'
109     description: 'Integration tests for the OVSDB project against different versions of OVS and branches. This job runs nightly. '
110
111     logrotate:
112         daysToKeep: '{build-days-to-keep}'
113         numToKeep: '{build-num-to-keep}'
114         artifactDaysToKeep: '{build-artifact-days-to-keep}'
115         artifactNumToKeep: '{build-artifact-num-to-keep}'
116
117     parameters:
118         - opendaylight-infra-parameters:
119             project: '{project}'
120             branch: '{branch}'
121             refspec: 'refs/heads/{branch}'
122             artifacts: '{archive-artifacts}'
123
124     scm:
125         - gerrit-trigger-scm:
126             refspec: '$GERRIT_REFSPEC'
127             branch: '{branch}'
128             choosing-strategy: gerrit
129
130     wrappers:
131         - opendaylight-infra-wrappers:
132             build-timeout: '{build-timeout}'
133
134     triggers:
135         - timed: '@midnight'
136         - gerrit:
137             server-name: 'OpenDaylight'
138             trigger-on:
139               - comment-added-contains-event:
140                  comment-contains-value: 'runit'
141             projects:
142               - project-compare-type: 'ANT'
143                 project-pattern: '{project}'
144                 branches:
145                   - branch-compare-type: 'ANT'
146                     branch-pattern: '**/{branch}'
147             skip-vote:
148                 successful: true
149                 failed: true
150                 unstable: true
151                 notbuilt: true
152
153     builders:
154         - wipe-org-opendaylight-repo
155         - maven-target:
156             maven-version: 'mvn33'
157             pom: 'pom.xml'
158             goals: '-V -B -l build.log clean install dependency:tree -Pq -Dmaven.compile.fork=true'
159             properties:
160                 - 'maven.repo.local=/tmp/r'
161                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
162                 - 'stream={stream}'
163             java-opts:
164                 - '-Xmx1024m -XX:MaxPermSize=256m'
165             settings: 'ovsdb-settings'
166             settings-type: cfp
167             global-settings: 'odl-global-settings'
168             global-settings-type: cfp
169         - run-ovsdb-it:
170             maven-version: 'mvn33'
171             stream: '{stream}'
172             OVS_VERSION: '2.4.0'
173         - run-ovsdb-it:
174             maven-version: 'mvn33'
175             stream: '{stream}'
176             OVS_VERSION: '2.5.0'
177         - jacoco-nojava-workaround
178
179     publishers:
180         - email-notification:
181             email-recipients: '{email-recipients}'
182             email-prefix: '[ovsdb]'
183         - opendaylight-infra-shiplogs:
184             maven-version: 'mvn33'