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