Merge "Add runit trigger for netvirt"
[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         - project-parameter:
60             project: '{project}'
61         - gerrit-parameters:
62             project: '{project}'
63             branch: '{branch}'
64             refspec: 'refs/heads/{branch}'
65
66     scm:
67         - gerrit-trigger-scm:
68             credentials-id: '{ssh-credentials}'
69             refspec: '$GERRIT_REFSPEC'
70             branch: '{branch}'
71             choosing-strategy: gerrit
72
73     wrappers:
74         - timeout:
75             fail: true
76             timeout: 360
77             timeout-var: 'BUILD_TIMEOUT'
78             type: absolute
79         - ssh-agent-credentials:
80             users:
81                 - '{ssh-credentials}'
82
83     triggers:
84         - timed: '@midnight'
85         - gerrit:
86             server-name: 'OpenDaylight'
87             trigger-on:
88               - comment-added-contains-event:
89                  comment-contains-value: 'runit'
90             projects:
91               - project-compare-type: 'ANT'
92                 project-pattern: '{project}'
93                 branches:
94                   - branch-compare-type: 'ANT'
95                     branch-pattern: '**/{branch}'
96             skip-vote:
97                 successful: true
98                 failed: true
99                 unstable: true
100                 notbuilt: true
101
102     builders:
103         - wipe-org-opendaylight-repo
104         - shell:
105             !include-raw-escape:
106                 - include-raw-setup-docker.sh
107         - inject:
108             properties-file: env.properties
109         - maven-target:
110             maven-version: '{mvn33}'
111             pom: 'pom.xml'
112             goals: 'clean install -V verify -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}}'
113             properties:
114                 - 'ovsdbserver.ipaddress=127.0.0.1'
115                 - 'ovsdbserver.port=6641'
116                 - 'ovsdb.userspace.enabled=yes'
117                 - 'maven.repo.local=/tmp/r'
118                 - 'org.ops4j.pax.url.mvn.localRepository=/tmp/r'
119                 - 'stream={stream}'
120             java-opts:
121                 - '-Xmx1024m -XX:MaxPermSize=256m'
122             settings: 'netvirt-settings'
123             settings-type: cfp
124             global-settings: 'odl-global-settings'
125             global-settings-type: cfp
126         - shell:
127             !include-raw-escape:
128                 - include-raw-cleanup-docker.sh
129         - jacoco-nojava-workaround
130
131     publishers:
132         - archive:
133             artifacts: 'docker-ovs-*.log'
134             fingerprint: false
135         - email-notification:
136             email-prefix: '[netvirt]'