Merge "Migrate project jobs to use 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       - lf-infra-publish
86
87 - job-template:
88     name: 'opflex-merge-{stream}'
89
90     node: centos7-java-builder-2c-8g
91     jdk: '{jdk}'
92
93     properties:
94       - opendaylight-infra-properties:
95           build-days-to-keep: '{build-days-to-keep}'
96
97     parameters:
98       - opendaylight-infra-parameters:
99           os-cloud: '{os-cloud}'
100           project: '{project}'
101           branch: '{branch}'
102           refspec: 'refs/heads/{branch}'
103           artifacts: '{archive-artifacts}'
104
105     scm:
106       - gerrit-trigger-scm:
107           refspec: ''
108           choosing-strategy: 'default'
109
110     wrappers:
111       - opendaylight-infra-wrappers:
112           build-timeout: '{build-timeout}'
113
114     triggers:
115       - gerrit-trigger-patch-merged:
116           server-name: '{server-name}'
117           name: 'opflex'
118           branch: '{branch}'
119
120     builders:
121       - opflex-build:
122           mvn33: 'mvn33'
123           stream: '{stream}'
124
125     publishers:
126       - email-notification:
127           email-recipients: '{email-recipients}'
128           email-prefix: '[opflex]'
129       - lf-infra-publish