Merge "Split OVSDB IT into separate mvn targets"
[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: 'docker-ovs-*.log'
22
23 - job-template:
24     name: 'netvirt-daily-full-integration-{stream}'
25
26     # Required Variables:
27     #     stream:    release stream (eg. stable-lithium or beryllium)
28     #     branch:    git branch (eg. stable/lithium or master)
29
30     project-type: matrix
31     node: matrix_master
32     description: 'Integration tests for the netvirt project against different versions of OVS and branches. This job runs nightly. '
33     execution-strategy:
34         sequential: true
35
36     axes:
37         - axis:
38             type: user-defined
39             name: 'OVS_VERSION'
40             values:
41                 - 2.3.3
42                 - 2.4.0
43                 - 2.5.0
44         - axis:
45             type: jdk
46             values: '{obj:jdks}'
47
48         - axis:
49             type: slave
50             name: nodes
51             values:
52                 - centos7-docker-2c-4g
53
54     logrotate:
55         daysToKeep: '{build-days-to-keep}'
56         numToKeep: '{build-num-to-keep}'
57         artifactDaysToKeep: '{build-artifact-days-to-keep}'
58         artifactNumToKeep: '{build-artifact-num-to-keep}'
59
60     parameters:
61         - opendaylight-infra-parameters:
62             project: '{project}'
63             branch: '{branch}'
64             refspec: 'refs/heads/{branch}'
65             artifacts: '{archive-artifacts}'
66
67     scm:
68         - gerrit-trigger-scm:
69             refspec: '$GERRIT_REFSPEC'
70             branch: '{branch}'
71             choosing-strategy: gerrit
72
73     wrappers:
74         - opendaylight-infra-wrappers:
75             build-timeout: '{build-timeout}'
76
77     triggers:
78         - timed: '@midnight'
79         - gerrit:
80             server-name: 'OpenDaylight'
81             trigger-on:
82               - comment-added-contains-event:
83                  comment-contains-value: 'runit'
84             projects:
85               - project-compare-type: 'ANT'
86                 project-pattern: '{project}'
87                 branches:
88                   - branch-compare-type: 'ANT'
89                     branch-pattern: '**/{branch}'
90             skip-vote:
91                 successful: true
92                 failed: true
93                 unstable: true
94                 notbuilt: true
95
96     builders:
97         - wipe-org-opendaylight-repo
98         - shell:
99             !include-raw-escape:
100                 - include-raw-setup-docker.sh
101         - inject:
102             properties-file: env.properties
103         - maven-target:
104             maven-version: '{mvn33}'
105             pom: 'pom.xml'
106             goals: 'clean install dependency:tree -V -B verify -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}}'
107             properties:
108                 - 'ovsdbserver.ipaddress=127.0.0.1'
109                 - 'ovsdbserver.port=6641'
110                 - 'ovsdb.userspace.enabled=yes'
111                 - 'maven.repo.local=/tmp/r'
112                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
113                 - 'stream={stream}'
114             java-opts:
115                 - '-Xmx1024m -XX:MaxPermSize=256m'
116             settings: 'netvirt-settings'
117             settings-type: cfp
118             global-settings: 'odl-global-settings'
119             global-settings-type: cfp
120         - shell:
121             !include-raw-escape:
122                 - include-raw-cleanup-docker.sh
123         - jacoco-nojava-workaround
124
125     publishers:
126         - email-notification:
127             email-prefix: '[netvirt]'
128         - archive-build:
129             maven-version: '{mvn33}'