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