Create Neon jobs and bump fluorine branch
[releng/builder.git] / jjb / netvirt / netvirt-full-integration.yaml
1 ---
2 - project:
3     name: netvirt-full-integration
4     jobs:
5       - 'netvirt-daily-full-integration-{stream}'
6
7     stream:
8       - neon:
9           branch: 'master'
10       - fluorine:
11           branch: 'stable/fluorine'
12       - oxygen:
13           branch: 'stable/oxygen'
14
15     project: 'netvirt'
16     archive-artifacts: '*.log **/target/surefire-reports/*.txt'
17
18 - builder:
19     name: netvirt-run-it-external-docker
20     builders:
21       - maven-target:
22           maven-version: '{maven-version}'
23           pom: '{pomFile}'
24           goals: >
25               -V -B verify -l {logfile} -Pintegrationtest
26               -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
27               -Dovsdb.controller.address=${{CONTROLLER_IP}}
28               -Dmaven.test.failure.ignore=true
29           properties:
30             - 'ovsdbserver.ipaddress=127.0.0.1'
31             - 'ovsdbserver.port=6641'
32             - 'ovsdb.userspace.enabled=yes'
33             - 'maven.repo.local=/tmp/r'
34             - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
35             - 'stream={stream}'
36           java-opts:
37             - '-Xmx1024m -XX:MaxPermSize=256m'
38           settings: 'netvirt-settings'
39           settings-type: cfp
40           global-settings: 'global-settings'
41           global-settings-type: cfp
42
43 - builder:
44     name: netvirt-run-it-dockerOvs
45     builders:
46       - maven-target:
47           maven-version: '{maven-version}'
48           pom: '{pomFile}'
49           goals: >
50               -V -B verify -l {logfile} -Pintegrationtest
51               -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
52               -Dovsdb.controller.address=${{CONTROLLER_IP}}
53               -Ddocker.compose.file=ovs-{OVS_VERSION}-hwvtep.yml
54               -Ddocker.vEnvWs=$WORKSPACE
55               -Dsgm=transparent
56               -Dmaven.test.failure.ignore=true
57           properties:
58             - 'maven.repo.local=/tmp/r'
59             - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
60             - 'stream={stream}'
61           java-opts:
62             - '-Xmx1024m -XX:MaxPermSize=256m'
63           settings: 'netvirt-settings'
64           settings-type: cfp
65           global-settings: 'global-settings'
66           global-settings-type: cfp
67
68 - builder:
69     name: run-net-virt-it
70     builders:
71       - netvirt-run-it-dockerOvs:
72           maven-version: '{maven-version}'
73           stream: '{stream}'
74           pomFile: 'openstack/net-virt-it/pom.xml'
75           logfile: '{OVS_VERSION}-net-virt-IT.log'
76           OVS_VERSION: '{OVS_VERSION}'
77
78 - builder:
79     name: run-netvirt-sfc-it
80     builders:
81       - netvirt-run-it-external-docker:
82           maven-version: '{maven-version}'
83           stream: '{stream}'
84           pomFile: 'openstack/net-virt-sfc/it/pom.xml'
85           logfile: '{OVS_VERSION}-netvirt-sfc-IT.log'
86
87 - builder:
88     name: run-netvirt-vpnservice-it
89     builders:
90       - netvirt-run-it-dockerOvs:
91           maven-version: '{maven-version}'
92           stream: '{stream}'
93           pomFile: 'vpnservice/it/pom.xml'
94           logfile: '{OVS_VERSION}-netvirt-vpnservice-IT.log'
95           OVS_VERSION: '{OVS_VERSION}'
96
97 - builder:
98     name: install-docker-compose
99     builders:
100       - shell: |
101           virtualenv $WORKSPACE/venv
102           source $WORKSPACE/venv/bin/activate
103           PYTHON="$WORKSPACE/venv/bin/python"
104           $PYTHON -m pip install --upgrade pip
105           $PYTHON -m pip install docker-compose
106
107
108 - builder:
109     name: run-netvirt-it
110     builders:
111       - inject:
112           properties-content: OVS_VERSION={OVS_VERSION}
113       - shell: !include-raw-escape: include-setup-misc.sh
114       - inject:
115           properties-file: env.properties
116       - install-docker-compose
117       - run-netvirt-vpnservice-it:
118           OVS_VERSION: '{OVS_VERSION}'
119           maven-version: '{maven-version}'
120           stream: '{stream}'
121       - run-net-virt-it:
122           OVS_VERSION: '{OVS_VERSION}'
123           maven-version: '{maven-version}'
124           stream: '{stream}'
125       - shell: !include-raw-escape: 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: !include-raw-escape: cleanup-docker.sh
133
134 - job-template:
135     name: 'netvirt-daily-full-integration-{stream}'
136
137     project-type: freestyle
138     node: centos7-docker-1c-4g
139     concurrent: true
140     jdk: '{java-version}'
141     description: >
142         Integration tests for the Netvirt project against different versions of
143         OVS and branches. This job runs nightly.
144
145     properties:
146       - opendaylight-infra-properties:
147           build-days-to-keep: '{build-days-to-keep}'
148
149     parameters:
150       - opendaylight-infra-parameters:
151           os-cloud: '{os-cloud}'
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       - gerrit:
169           server-name: '{gerrit-server-name}'
170           trigger-on:
171             - comment-added-contains-event:
172                 comment-contains-value: 'runit'
173           projects:
174             - project-compare-type: 'ANT'
175               project-pattern: '{project}'
176               branches:
177                 - branch-compare-type: 'ANT'
178                   branch-pattern: '**/{branch}'
179           skip-vote:
180             successful: true
181             failed: true
182             unstable: true
183             notbuilt: true
184
185     builders:
186       - wipe-org-opendaylight-repo
187       - maven-target:
188           maven-version: 'mvn33'
189           pom: 'pom.xml'
190           goals: '-V -B -l build.log clean install dependency:tree -Pq -Dmaven.compile.fork=true'
191           properties:
192             - 'maven.repo.local=/tmp/r'
193             - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
194             - 'stream={stream}'
195           java-opts:
196             - '-Xmx1024m -XX:MaxPermSize=256m'
197           settings: 'netvirt-settings'
198           settings-type: cfp
199           global-settings: 'global-settings'
200           global-settings-type: cfp
201       # skip 2.4.0 until we figure out conntrack
202       # - run-netvirt-it:
203       #    maven-version: 'mvn33'
204       #    stream: '{stream}'
205       #    OVS_VERSION: '2.4.0'
206       - run-netvirt-it:
207           maven-version: 'mvn33'
208           stream: '{stream}'
209           OVS_VERSION: '2.5.0'
210       - jacoco-nojava-workaround
211
212     publishers:
213       - email-notification:
214           email-recipients: '{email-recipients}'
215           email-prefix: '[netvirt]'
216       - text-finder:
217           fileset: "**/target/surefire-reports/*.xml"
218           regexp: 'failures\=\"[^0]\"'
219           succeed-if-found: false
220           unstable-if-found: true
221           also-check-console-output: false
222       - lf-infra-publish