Merge "Move sxp Sonar scan to Sonarcloud"
[releng/builder.git] / jjb / ovsdb / ovsdb-full-integration.yaml
1 ---
2 - project:
3     name: ovsdb-full-integration
4     jobs:
5       - 'ovsdb-daily-full-integration-{stream}'
6
7     stream:
8       - aluminium:
9           branch: 'master'
10           java-version: 'openjdk11'
11       - magnesium:
12           branch: 'stable/magnesium'
13       - sodium:
14           branch: 'stable/sodium'
15
16     project: 'ovsdb'
17     archive-artifacts: '*.log'
18
19 - builder:
20     name: ovsdb-run-it
21     builders:
22       - maven-target:
23           maven-version: '{maven-version}'
24           pom: '{pomFile}'
25           goals: >
26               -V -B verify -l {logfile} -Pintegrationtest
27               -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true
28               -Dovsdb.controller.address=${{CONTROLLER_IP}}
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'
38           settings: 'ovsdb-settings'
39           settings-type: cfp
40           global-settings: 'global-settings'
41           global-settings-type: cfp
42
43 - builder:
44     name: run-library-it
45     builders:
46       - ovsdb-run-it:
47           maven-version: '{maven-version}'
48           stream: '{stream}'
49           pomFile: 'library/it/pom.xml'
50           logfile: '{OVS_VERSION}-libraryIT.log'
51
52 - builder:
53     name: run-southbound-it
54     builders:
55       - ovsdb-run-it:
56           maven-version: '{maven-version}'
57           stream: '{stream}'
58           pomFile: 'southbound/southbound-it/pom.xml'
59           logfile: '{OVS_VERSION}-southboundIT.log'
60
61 - builder:
62     name: run-hwvtepsouthbound-it
63     builders:
64       - ovsdb-run-it:
65           maven-version: '{maven-version}'
66           stream: '{stream}'
67           pomFile: 'hwvtepsouthbound/hwvtepsouthbound-it/pom.xml'
68           logfile: '{OVS_VERSION}-hwvtepsouthboundIT.log'
69
70 - builder:
71     name: run-ovsdb-it
72     builders:
73       - inject:
74           properties-content: OVS_VERSION={OVS_VERSION}
75       - shell: !include-raw-escape: setup-docker.sh
76       - inject:
77           properties-file: env.properties
78       - run-southbound-it:
79           OVS_VERSION: '{OVS_VERSION}'
80           maven-version: '{maven-version}'
81           stream: '{stream}'
82       - shell: !include-raw-escape: include-setup-hwvtep-docker.sh
83       - run-library-it:
84           OVS_VERSION: '{OVS_VERSION}'
85           maven-version: '{maven-version}'
86           stream: '{stream}'
87       - run-hwvtepsouthbound-it:
88           OVS_VERSION: '{OVS_VERSION}'
89           maven-version: '{maven-version}'
90           stream: '{stream}'
91       - shell: !include-raw-escape: cleanup-docker.sh
92
93 - job-template:
94     name: 'ovsdb-daily-full-integration-{stream}'
95
96     disable-job: false
97
98     project-type: freestyle
99     node: centos7-docker-1c-4g
100     jdk: '{java-version}'
101     description: >
102         Integration tests for the OVSDB project against different versions of
103         OVS and branches. This job runs nightly.
104     disabled: '{disable-job}'
105
106     properties:
107       - opendaylight-infra-properties:
108           build-days-to-keep: '{build-days-to-keep}'
109
110     parameters:
111       - opendaylight-infra-parameters:
112           os-cloud: '{os-cloud}'
113           project: '{project}'
114           branch: '{branch}'
115           refspec: 'refs/heads/{branch}'
116           artifacts: '{archive-artifacts}'
117
118     scm:
119       - gerrit-trigger-scm:
120           refspec: '$GERRIT_REFSPEC'
121           branch: '{branch}'
122           choosing-strategy: gerrit
123
124     wrappers:
125       - opendaylight-infra-wrappers:
126           build-timeout: '{build-timeout}'
127
128     triggers:
129       - timed: '@midnight'
130       - gerrit:
131           server-name: '{gerrit-server-name}'
132           trigger-on:
133             - comment-added-contains-event:
134                 comment-contains-value: 'runit'
135           projects:
136             - project-compare-type: 'ANT'
137               project-pattern: '{project}'
138               branches:
139                 - branch-compare-type: 'ANT'
140                   branch-pattern: '**/{branch}'
141           skip-vote:
142             successful: true
143             failed: true
144             unstable: true
145             notbuilt: true
146
147     builders:
148       - wipe-org-opendaylight-repo
149       - maven-target:
150           maven-version: 'mvn33'
151           pom: 'pom.xml'
152           goals: '-V -B -l build.log clean install dependency:tree -Pq -Dmaven.compile.fork=true'
153           properties:
154             - 'maven.repo.local=/tmp/r'
155             - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
156             - 'stream={stream}'
157           java-opts:
158             - '-Xmx1024m'
159           settings: 'ovsdb-settings'
160           settings-type: cfp
161           global-settings: 'global-settings'
162           global-settings-type: cfp
163       - run-ovsdb-it:
164           maven-version: 'mvn33'
165           stream: '{stream}'
166           OVS_VERSION: '2.4.0'
167       - run-ovsdb-it:
168           maven-version: 'mvn33'
169           stream: '{stream}'
170           OVS_VERSION: '2.5.0'
171       - lf-jacoco-nojava-workaround
172
173     publishers:
174       - email-notification:
175           email-recipients: '{email-recipients}'
176           email-prefix: '[ovsdb]'
177       - lf-infra-publish