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