Refactor common parameters into opendaylight-infra-parameters
[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         - boron:
13             branch: 'master'
14             jdk: openjdk7
15             jdks:
16                 - openjdk7
17         - beryllium:
18             branch: 'stable/beryllium'
19             jdk: openjdk7
20             jdks:
21                 - openjdk7
22
23     project: 'opflex'
24
25 - builder:
26     name: opflex-build
27     builders:
28       - maven-target:
29           maven-version: '{mvn33}'
30           pom: genie/pom.xml
31           goals: compile
32       - copyartifact:
33           project: opflex-libuv_tgz-{stream}
34           flatten: true
35       - copyartifact:
36           project: opflex-rapidjson_tgz-{stream}
37           flatten: true
38       - copyartifact:
39           project: opflex-openvswitch_tgz-{stream}
40           flatten: true
41       - shell:
42           !include-raw-escape:
43             - include-raw-opflex-build.sh
44
45 - job-template:
46     name: 'opflex-verify-{stream}'
47
48     project-type: matrix
49     node: matrix_master
50     concurrent: true
51
52     axes:
53         - axis:
54             type: slave
55             name: nodes
56             values:
57                 - dynamic_verify
58         - axis:
59             type: jdk
60             values: '{obj:jdks}'
61
62     logrotate:
63         daysToKeep: '{build-days-to-keep}'
64         numToKeep: '{build-num-to-keep}'
65         artifactDaysToKeep: '{build-artifact-days-to-keep}'
66         artifactNumToKeep: '{build-artifact-num-to-keep}'
67
68     parameters:
69         - opendaylight-infra-parameters:
70             project: '{project}'
71             branch: '{branch}'
72             refspec: 'refs/heads/{branch}'
73             artifacts: '{archive-artifacts}'
74
75     scm:
76         - gerrit-trigger-scm:
77             refspec: '$GERRIT_REFSPEC'
78             choosing-strategy: 'gerrit'
79
80     wrappers:
81         - opendaylight-infra-wrappers:
82             build-timeout: '{build-timeout}'
83
84     triggers:
85         - gerrit-trigger-patch-submitted:
86             name: 'opflex'
87             branch: '{branch}'
88
89     builders:
90         - opflex-build:
91             mvn33: '{mvn33}'
92             stream: '{stream}'
93
94     publishers:
95         - email-notification:
96             email-prefix: '[opflex]'
97
98 - job-template:
99     name: 'opflex-merge-{stream}'
100
101     node: dynamic_merge
102     jdk: '{jdk}'
103
104     logrotate:
105         daysToKeep: '{build-days-to-keep}'
106         numToKeep: '{build-num-to-keep}'
107         artifactDaysToKeep: '{build-artifact-days-to-keep}'
108         artifactNumToKeep: '{build-artifact-num-to-keep}'
109
110     parameters:
111         - opendaylight-infra-parameters:
112             project: '{project}'
113             branch: '{branch}'
114             refspec: 'refs/heads/{branch}'
115             artifacts: '{archive-artifacts}'
116
117     scm:
118         - gerrit-trigger-scm:
119             refspec: ''
120             choosing-strategy: 'default'
121
122     wrappers:
123         - opendaylight-infra-wrappers:
124             build-timeout: '{build-timeout}'
125
126     triggers:
127         - gerrit-trigger-patch-merged:
128             name: 'opflex'
129             branch: '{branch}'
130
131     builders:
132         - opflex-build:
133             mvn33: '{mvn33}'
134             stream: '{stream}'
135
136     publishers:
137         - email-notification:
138             email-prefix: '[opflex]'
139         - archive:
140             artifacts: '**/*.tar.gz'