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