Merge "Add SXP cluster CSIT job"
[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     concurrent: true
142     jdk: '{jdk}'
143     description: 'Integration tests for the Netvirt project against different versions of OVS and branches. This job runs nightly. '
144
145     logrotate:
146         daysToKeep: '{build-days-to-keep}'
147         numToKeep: '{build-num-to-keep}'
148         artifactDaysToKeep: '{build-artifact-days-to-keep}'
149         artifactNumToKeep: '{build-artifact-num-to-keep}'
150
151     parameters:
152         - opendaylight-infra-parameters:
153             project: '{project}'
154             branch: '{branch}'
155             refspec: 'refs/heads/{branch}'
156             artifacts: '{archive-artifacts}'
157
158     scm:
159         - gerrit-trigger-scm:
160             refspec: '$GERRIT_REFSPEC'
161             branch: '{branch}'
162             choosing-strategy: gerrit
163
164     wrappers:
165         - opendaylight-infra-wrappers:
166             build-timeout: '{build-timeout}'
167
168     triggers:
169         - timed: '@midnight'
170         - gerrit:
171             server-name: '{server-name}'
172             trigger-on:
173               - comment-added-contains-event:
174                  comment-contains-value: 'runit'
175             projects:
176               - project-compare-type: 'ANT'
177                 project-pattern: '{project}'
178                 branches:
179                   - branch-compare-type: 'ANT'
180                     branch-pattern: '**/{branch}'
181             skip-vote:
182                 successful: true
183                 failed: true
184                 unstable: true
185                 notbuilt: true
186
187     builders:
188         - wipe-org-opendaylight-repo
189         - maven-target:
190             maven-version: 'mvn33'
191             pom: 'pom.xml'
192             goals: '-V -B -l build.log clean install dependency:tree -Pq -Dmaven.compile.fork=true'
193             properties:
194                 - 'maven.repo.local=/tmp/r'
195                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
196                 - 'stream={stream}'
197             java-opts:
198                 - '-Xmx1024m -XX:MaxPermSize=256m'
199             settings: 'netvirt-settings'
200             settings-type: cfp
201             global-settings: 'odl-global-settings'
202             global-settings-type: cfp
203         #  skip 2.4.0 until we figure out conntrack
204         #- run-netvirt-it:
205         #    maven-version: 'mvn33'
206         #    stream: '{stream}'
207         #    OVS_VERSION: '2.4.0'
208         - run-netvirt-it:
209             maven-version: 'mvn33'
210             stream: '{stream}'
211             OVS_VERSION: '2.5.0'
212         - jacoco-nojava-workaround
213
214     publishers:
215         - email-notification:
216             email-recipients: '{email-recipients}'
217             email-prefix: '[netvirt]'
218         - text-finder:
219             fileset: "**/target/surefire-reports/*.xml"
220             regexp: 'failures\=\"[^0]\"'
221             succeed-if-found: false
222             unstable-if-found: true
223             also-check-console-output: false
224         - opendaylight-infra-shiplogs:
225             maven-version: 'mvn33'