refactor email recipients to parameter with default value
[releng/builder.git] / jjb / netvirt / netvirt-full-integration.yaml
1 - project:
2     name: netvirt-full-integration
3     jobs:
4         - 'netvirt-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: 'netvirt'
24     archive-artifacts: '*.log **/target/surefire-reports/*.txt'
25
26 - builder:
27     name: netvirt-run-it-external-docker
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}} -Dmaven.test.failure.ignore=true'
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: 'netvirt-settings'
43             settings-type: cfp
44             global-settings: 'odl-global-settings'
45             global-settings-type: cfp
46
47 - builder:
48     name: netvirt-run-it-dockerOvs
49     builders:
50         - maven-target:
51             maven-version: '{maven-version}'
52             pom: '{pomFile}'
53             goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}} -Ddocker.compose.file=ovs-{OVS_VERSION}-hwvtep.yml -Ddocker.vEnvWs=$WORKSPACE -Dsgm=transparent -Dmaven.test.failure.ignore=true'
54             properties:
55                 - 'maven.repo.local=/tmp/r'
56                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
57                 - 'stream={stream}'
58             java-opts:
59                 - '-Xmx1024m -XX:MaxPermSize=256m'
60             settings: 'netvirt-settings'
61             settings-type: cfp
62             global-settings: 'odl-global-settings'
63             global-settings-type: cfp
64
65 - builder:
66     name: run-net-virt-it
67     builders:
68         - netvirt-run-it-dockerOvs:
69             maven-version: '{maven-version}'
70             stream: '{stream}'
71             pomFile: 'openstack/net-virt-it/pom.xml'
72             logfile: '{OVS_VERSION}-net-virt-IT.log'
73             OVS_VERSION: '{OVS_VERSION}'
74
75 - builder:
76     name: run-netvirt-sfc-it
77     builders:
78         - netvirt-run-it-external-docker:
79             maven-version: '{maven-version}'
80             stream: '{stream}'
81             pomFile: 'openstack/net-virt-sfc/it/pom.xml'
82             logfile: '{OVS_VERSION}-netvirt-sfc-IT.log'
83
84 - builder:
85     name: run-netvirt-vpnservice-it
86     builders:
87         - netvirt-run-it-dockerOvs:
88             maven-version: '{maven-version}'
89             stream: '{stream}'
90             pomFile: 'vpnservice/it/pom.xml'
91             logfile: '{OVS_VERSION}-netvirt-vpnservice-IT.log'
92             OVS_VERSION: '{OVS_VERSION}'
93
94 - builder:
95     name: install-docker-compose
96     builders:
97         - shell: |
98             virtualenv $WORKSPACE/venv
99             source $WORKSPACE/venv/bin/activate
100             pip install --upgrade pip
101             pip install docker-compose
102
103
104 - builder:
105     name: run-netvirt-it
106     builders:
107         - inject:
108             properties-content: OVS_VERSION={OVS_VERSION}
109         - shell:
110             !include-raw-escape:
111                 - include-setup-misc.sh
112         - inject:
113             properties-file: env.properties
114         - install-docker-compose
115         - run-netvirt-vpnservice-it:
116             OVS_VERSION: '{OVS_VERSION}'
117             maven-version: '{maven-version}'
118             stream: '{stream}'
119         - run-net-virt-it:
120             OVS_VERSION: '{OVS_VERSION}'
121             maven-version: '{maven-version}'
122             stream: '{stream}'
123         - shell:
124             !include-raw-escape:
125                 - include-raw-setup-docker.sh
126         - inject:
127             properties-file: env.properties
128         - run-netvirt-sfc-it:
129             OVS_VERSION: '{OVS_VERSION}'
130             maven-version: '{maven-version}'
131             stream: '{stream}'
132         - shell:
133             !include-raw-escape:
134                 - include-raw-cleanup-docker.sh
135
136 - job-template:
137     name: 'netvirt-daily-full-integration-{stream}'
138
139     project-type: freestyle
140     node: centos7-docker-2c-4g
141     jdk: '{jdk}'
142     description: 'Integration tests for the Netvirt project against different versions of OVS and branches. This job runs nightly. '
143
144     logrotate:
145         daysToKeep: '{build-days-to-keep}'
146         numToKeep: '{build-num-to-keep}'
147         artifactDaysToKeep: '{build-artifact-days-to-keep}'
148         artifactNumToKeep: '{build-artifact-num-to-keep}'
149
150     parameters:
151         - opendaylight-infra-parameters:
152             project: '{project}'
153             branch: '{branch}'
154             refspec: 'refs/heads/{branch}'
155             artifacts: '{archive-artifacts}'
156
157     scm:
158         - gerrit-trigger-scm:
159             refspec: '$GERRIT_REFSPEC'
160             branch: '{branch}'
161             choosing-strategy: gerrit
162
163     wrappers:
164         - opendaylight-infra-wrappers:
165             build-timeout: '{build-timeout}'
166
167     triggers:
168         - timed: '@midnight'
169         - gerrit:
170             server-name: 'OpenDaylight'
171             trigger-on:
172               - comment-added-contains-event:
173                  comment-contains-value: 'runit'
174             projects:
175               - project-compare-type: 'ANT'
176                 project-pattern: '{project}'
177                 branches:
178                   - branch-compare-type: 'ANT'
179                     branch-pattern: '**/{branch}'
180             skip-vote:
181                 successful: true
182                 failed: true
183                 unstable: true
184                 notbuilt: true
185
186     builders:
187         - wipe-org-opendaylight-repo
188         - maven-target:
189             maven-version: 'mvn33'
190             pom: 'pom.xml'
191             goals: '-V -B -l build.log clean install dependency:tree -Pq -Dmaven.compile.fork=true'
192             properties:
193                 - 'maven.repo.local=/tmp/r'
194                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
195                 - 'stream={stream}'
196             java-opts:
197                 - '-Xmx1024m -XX:MaxPermSize=256m'
198             settings: 'netvirt-settings'
199             settings-type: cfp
200             global-settings: 'odl-global-settings'
201             global-settings-type: cfp
202         #  skip 2.4.0 until we figure out conntrack
203         #- run-netvirt-it:
204         #    maven-version: 'mvn33'
205         #    stream: '{stream}'
206         #    OVS_VERSION: '2.4.0'
207         - run-netvirt-it:
208             maven-version: 'mvn33'
209             stream: '{stream}'
210             OVS_VERSION: '2.5.0'
211         - jacoco-nojava-workaround
212
213     publishers:
214         - email-notification:
215             email-recipients: '{email-recipients}'
216             email-prefix: '[netvirt]'
217         - text-finder:
218             fileset: "**/target/surefire-reports/*.xml"
219             regexp: 'failures\=\"[^0]\"'
220             succeed-if-found: false
221             unstable-if-found: true
222             also-check-console-output: false
223         - opendaylight-infra-shiplogs:
224             maven-version: 'mvn33'