Merge "Add upgrade tests job"
[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       - lf-infra-pre-build
104       - opflex-build:
105           mvn33: '{mvn-version}'
106           stream: '{stream}'
107       # todo: replace the builder with generic version in global-jjb
108       - opflex-deploy-maven-file:
109           global-settings-file: '{global-settings-file}'
110           settings-file: '{settings-file}'
111           mvn-version: '{mvn-version}'
112           repo-id: '{staging-profile-id}'
113           group-id: '{group-id}'
114           upload-files-dir: '{upload-files-dir}'
115       - lf-infra-create-netrc:
116           server-id: opendaylight-staging
117       # todo: replace the builder with generic version in global-jjb
118       - opflex-maven-stage:
119           global-settings-file: '{global-settings-file}'
120           settings-file: '{settings-file}'
121           staging-profile-id: '{staging-profile-id}'
122       - lf-provide-maven-settings-cleanup
123
124     publishers:
125       - email-notification:
126           email-recipients: '{email-recipients}'
127           email-prefix: '[opflex]'
128       - lf-infra-publish
129
130 - project:
131     name: opflex-view
132     views:
133       - project-view
134     project-name: opflex