Merge "Convert Vagrant to Packer"
[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.3
41                 - 2.4.0
42                 - 2.5.0
43         - axis:
44             type: jdk
45             values: '{obj:jdks}'
46
47         - axis:
48             type: slave
49             name: nodes
50             values:
51                 - centos7-docker-2c-4g
52
53     logrotate:
54         daysToKeep: '{build-days-to-keep}'
55         numToKeep: '{build-num-to-keep}'
56         artifactDaysToKeep: '{build-artifact-days-to-keep}'
57         artifactNumToKeep: '{build-artifact-num-to-keep}'
58
59     parameters:
60         - opendaylight-infra-parameters:
61             project: '{project}'
62             branch: '{branch}'
63             refspec: 'refs/heads/{branch}'
64             artifacts: '{archive-artifacts}'
65
66     scm:
67         - gerrit-trigger-scm:
68             refspec: '$GERRIT_REFSPEC'
69             branch: '{branch}'
70             choosing-strategy: gerrit
71
72     wrappers:
73         - opendaylight-infra-wrappers:
74             build-timeout: '{build-timeout}'
75
76     triggers:
77         - timed: '@midnight'
78         - gerrit:
79             server-name: 'OpenDaylight'
80             trigger-on:
81               - comment-added-contains-event:
82                  comment-contains-value: 'runit'
83             projects:
84               - project-compare-type: 'ANT'
85                 project-pattern: '{project}'
86                 branches:
87                   - branch-compare-type: 'ANT'
88                     branch-pattern: '**/{branch}'
89             skip-vote:
90                 successful: true
91                 failed: true
92                 unstable: true
93                 notbuilt: true
94
95     builders:
96         - wipe-org-opendaylight-repo
97         - shell:
98             !include-raw-escape:
99                 - include-raw-setup-docker.sh
100         - inject:
101             properties-file: env.properties
102         - maven-target:
103             maven-version: '{mvn33}'
104             pom: 'pom.xml'
105             goals: 'clean install dependency:tree -V verify -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}}'
106             properties:
107                 - 'ovsdbserver.ipaddress=127.0.0.1'
108                 - 'ovsdbserver.port=6641'
109                 - 'ovsdb.userspace.enabled=yes'
110                 - 'maven.repo.local=/tmp/r'
111                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
112                 - 'stream={stream}'
113             java-opts:
114                 - '-Xmx1024m -XX:MaxPermSize=256m'
115             settings: 'netvirt-settings'
116             settings-type: cfp
117             global-settings: 'odl-global-settings'
118             global-settings-type: cfp
119         - shell:
120             !include-raw-escape:
121                 - include-raw-cleanup-docker.sh
122         - jacoco-nojava-workaround
123
124     publishers:
125         - archive:
126             artifacts: 'docker-ovs-*.log'
127             fingerprint: false
128         - email-notification:
129             email-prefix: '[netvirt]'