3f85b082450275faec2416115d08bd9c38b19115
[releng/builder.git] / jjb / opflex / opflex.yaml
1 ---
2 - project:
3     name: opflex-release
4     jobs:
5       - 'opflex-release-{stream}'
6
7     stream:
8       - oxygen:
9           branch: 'master'
10           libuv-version: '1.8.0'
11           rapidjson-version: '1.0.2'
12           openvswitch-version: '2.6.0'
13       - nitrogen:
14           branch: 'stable/nitrogen'
15           libuv-version: '1.8.0'
16           rapidjson-version: '1.0.2'
17           openvswitch-version: '2.6.0'
18       - carbon:
19           branch: 'stable/carbon'
20           libuv-version: '1.8.0'
21           rapidjson-version: '1.0.2'
22           openvswitch-version: '2.6.0'
23
24     project: 'opflex'
25     project-name: 'opflex'
26
27     jdk: 'openjdk8'
28
29     branch: master
30     global-settings-file: global-settings
31     settings-file: opflex-settings
32     group-id: org.opendaylight.opflex
33     upload-files-dir: "$WORKSPACE/upload_files"
34
35     # Used by the release job
36     staging-profile-id: 906b0d53d714e
37
38 - job-template:
39     name: 'opflex-release-{stream}'
40
41     node: centos7-builder-2c-8g
42     jdk: '{java-version}'
43
44     ######################
45     # Default parameters #
46     ######################
47
48     build-timeout: 30
49     java-version: openjdk8
50     mvn-opts: ''
51     mvn-params: ''
52     mvn-version: mvn33
53     stream: master
54
55     properties:
56       - opendaylight-infra-properties:
57           build-days-to-keep: '{build-days-to-keep}'
58
59     parameters:
60       - opendaylight-infra-parameters:
61           os-cloud: '{os-cloud}'
62           project: '{project}'
63           branch: '{branch}'
64           refspec: 'refs/heads/{branch}'
65           artifacts: ''
66       - lf-infra-maven-parameters:
67           mvn-opts: '{mvn-opts}'
68           mvn-params: '{mvn-params}'
69           mvn-version: '{mvn-version}'
70           staging-profile-id: '{staging-profile-id}'
71       - string:
72           name: LIBUV_VERSION
73           # yamllint disable-line rule:line-length
74           default: '{libuv-version}'
75           description: 'libuv version to pull from thirdparty repository'
76       - string:
77           name: RAPIDJSON_VERSION
78           # yamllint disable-line rule:line-length
79           default: '{rapidjson-version}'
80           description: 'rapidjson version to pull from thirdparty repository'
81       - string:
82           name: OPENVSWITCH_VERSION
83           # yamllint disable-line rule:line-length
84           default: '{openvswitch-version}'
85           description: 'openvswitch version to pull from thirdparty repository'
86
87     scm:
88       - gerrit-trigger-scm:
89           refspec: ''
90           choosing-strategy: 'default'
91
92     wrappers:
93       - opendaylight-infra-wrappers:
94           build-timeout: '{build-timeout}'
95
96     builders:
97       - opflex-build:
98           mvn33: '{mvn-version}'
99           stream: '{stream}'
100       # todo: replace the builder with generic version in global-jjb
101       - opflex-deploy-maven-file:
102           global-settings-file: '{global-settings-file}'
103           settings-file: '{settings-file}'
104           mvn-version: '{mvn-version}'
105           repo-id: '{staging-profile-id}'
106           group-id: '{group-id}'
107           upload-files-dir: '{upload-files-dir}'
108       - lf-infra-create-netrc:
109           server-id: opendaylight-staging
110       # todo: replace the builder with generic version in global-jjb
111       - opflex-maven-stage:
112           global-settings-file: '{global-settings-file}'
113           settings-file: '{settings-file}'
114           staging-profile-id: '{staging-profile-id}'
115       - lf-provide-maven-settings-cleanup
116
117     publishers:
118       - email-notification:
119           email-recipients: '{email-recipients}'
120           email-prefix: '[opflex]'
121       - lf-infra-publish