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