Merge "Add new Ubuntu mininet VM with latest OVS and mininet"
[releng/builder.git] / jjb / opflex / opflex-custom.yaml
1 - project:
2     name: opflex
3     jobs:
4         - 'opflex-verify-{stream}'
5         - 'opflex-merge-{stream}'
6 #        - 'opflex-daily-{stream}'
7 #        - 'opflex-distribution-{stream}'
8
9     # stream:    release stream (eg. stable-lithium or beryllium)
10     # branch:    git branch (eg. stable/lithium or master)
11     stream:
12         - beryllium:
13             branch: 'master'
14             jdk: openjdk7
15             jdks:
16                 - openjdk7
17
18     project: 'opflex'
19
20 - builder:
21     name: opflex-build
22     builders:
23       - maven-target:
24           maven-version: '{mvn33}'
25           pom: genie/pom.xml
26           goals: compile
27       - copyartifact:
28           project: opflex-libuv_tgz-{stream}
29           flatten: true
30       - copyartifact:
31           project: opflex-rapidjson_tgz-{stream}
32           flatten: true
33       - copyartifact:
34           project: opflex-openvswitch_tgz-{stream}
35           flatten: true
36       - shell:
37           !include-raw-escape:
38             - include-raw-opflex-build.sh
39
40 - job-template:
41     name: 'opflex-verify-{stream}'
42
43     project-type: matrix
44     node: matrix_master
45     concurrent: true
46
47     axes:
48         - axis:
49             type: slave
50             name: nodes
51             values:
52                 - dynamic_verify
53         - axis:
54             type: jdk
55             values: '{obj:jdks}'
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-parameter:
67             branch: '{branch}'
68         - gerrit-refspec-parameter:
69             refspec: ''
70
71     scm:
72         - gerrit-trigger-scm:
73             credentials-id: '{ssh-credentials}'
74             refspec: '$GERRIT_REFSPEC'
75             choosing-strategy: 'gerrit'
76
77     wrappers:
78         - build-timeout
79         - ssh-agent-credentials:
80             users:
81                 - '{ssh-credentials}'
82
83     triggers:
84         - gerrit-trigger-patch-submitted:
85             name: 'opflex'
86             branch: '{branch}'
87
88     builders:
89         - opflex-build:
90             mvn33: '{mvn33}'
91             stream: '{stream}'
92
93     publishers:
94         - email-notification:
95             email-prefix: '[opflex]'
96
97 - job-template:
98     name: 'opflex-merge-{stream}'
99
100     node: dynamic_merge
101     jdk: '{jdk}'
102
103     logrotate:
104         daysToKeep: '{build-days-to-keep}'
105         numToKeep: '{build-num-to-keep}'
106         artifactDaysToKeep: '{build-artifact-days-to-keep}'
107         artifactNumToKeep: '{build-artifact-num-to-keep}'
108
109     parameters:
110         - project-parameter:
111             project: '{project}'
112         - gerrit-parameter:
113             branch: '{branch}'
114
115     scm:
116         - gerrit-trigger-scm:
117             credentials-id: '{ssh-credentials}'
118             refspec: ''
119             choosing-strategy: 'default'
120
121     wrappers:
122         - build-timeout
123         - ssh-agent-credentials:
124             users:
125                 - '{ssh-credentials}'
126
127     triggers:
128         - gerrit-trigger-patch-merged:
129             name: 'opflex'
130             branch: '{branch}'
131
132     builders:
133         - opflex-build:
134             mvn33: '{mvn33}'
135             stream: '{stream}'
136
137     publishers:
138         - email-notification:
139             email-prefix: '[opflex]'
140         - archive:
141             artifacts: '**/*.tar.gz'