Merge "Migrate releng job templates to lf-infra-publish"
[releng/builder.git] / jjb / opflex / opflex-custom.yaml
1 ---
2 - project:
3     name: opflex
4     jobs:
5       - 'opflex-verify-{stream}'
6       - 'opflex-merge-{stream}'
7
8     stream:
9       - nitrogen:
10           branch: 'master'
11           jdk: openjdk8
12       - carbon:
13           branch: 'stable/carbon'
14           jdk: openjdk8
15       - boron:
16           branch: 'stable/boron'
17           jdk: openjdk8
18
19     project: 'opflex'
20     archive-artifacts: '**/*.tar.gz'
21
22 - builder:
23     name: opflex-build
24     builders:
25       - maven-target:
26           maven-version: 'mvn33'
27           pom: genie/pom.xml
28           goals: compile
29       - copyartifact:
30           project: opflex-libuv_tgz-{stream}
31           flatten: true
32       - copyartifact:
33           project: opflex-rapidjson_tgz-{stream}
34           flatten: true
35       - copyartifact:
36           project: opflex-openvswitch_tgz-{stream}
37           flatten: true
38       - shell: !include-raw-escape: include-raw-opflex-build.sh
39
40 - job-template:
41     name: 'opflex-verify-{stream}'
42
43     project-type: freestyle
44     node: centos7-java-builder-2c-8g
45     concurrent: true
46     jdk: '{jdk}'
47
48     properties:
49       - opendaylight-infra-properties:
50           build-days-to-keep: '{build-days-to-keep}'
51
52     parameters:
53       - opendaylight-infra-parameters:
54           os-cloud: '{os-cloud}'
55           project: '{project}'
56           branch: '{branch}'
57           refspec: 'refs/heads/{branch}'
58           artifacts: '{archive-artifacts}'
59
60     scm:
61       - gerrit-trigger-scm:
62           refspec: '$GERRIT_REFSPEC'
63           choosing-strategy: 'gerrit'
64
65     wrappers:
66       - opendaylight-infra-wrappers:
67           build-timeout: '{build-timeout}'
68
69     triggers:
70       - gerrit-trigger-patch-submitted:
71           server: '{server-name}'
72           project: '{project}'
73           branch: '{branch}'
74           files: '**'
75
76     builders:
77       - opflex-build:
78           mvn33: 'mvn33'
79           stream: '{stream}'
80
81     publishers:
82       - email-notification:
83           email-recipients: '{email-recipients}'
84           email-prefix: '[opflex]'
85       - opendaylight-infra-shiplogs:
86           maven-version: 'mvn33'
87
88 - job-template:
89     name: 'opflex-merge-{stream}'
90
91     node: centos7-java-builder-2c-8g
92     jdk: '{jdk}'
93
94     properties:
95       - opendaylight-infra-properties:
96           build-days-to-keep: '{build-days-to-keep}'
97
98     parameters:
99       - opendaylight-infra-parameters:
100           os-cloud: '{os-cloud}'
101           project: '{project}'
102           branch: '{branch}'
103           refspec: 'refs/heads/{branch}'
104           artifacts: '{archive-artifacts}'
105
106     scm:
107       - gerrit-trigger-scm:
108           refspec: ''
109           choosing-strategy: 'default'
110
111     wrappers:
112       - opendaylight-infra-wrappers:
113           build-timeout: '{build-timeout}'
114
115     triggers:
116       - gerrit-trigger-patch-merged:
117           server-name: '{server-name}'
118           name: 'opflex'
119           branch: '{branch}'
120
121     builders:
122       - opflex-build:
123           mvn33: 'mvn33'
124           stream: '{stream}'
125
126     publishers:
127       - email-notification:
128           email-recipients: '{email-recipients}'
129           email-prefix: '[opflex]'
130       - opendaylight-infra-shiplogs:
131           maven-version: 'mvn33'