engine: Create openstack release jobs
[infra/cicd.git] / jjb / cloud-infra / onap-macros.yaml
1 ---
2 #
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21 # macros used by all job types on cloud
22 - parameter:
23     name: 'onap-parameter-macro-legacy'
24     parameters:
25       - string:
26           name: PROVISIONER_TYPE
27           default: 'heat'
28           description: 'Provisioner to use for provisioning nodes'
29       - string:
30           name: INSTALLER_TYPE
31           default: 'kubespray'
32           description: 'Installer to use for deploying the scenario'
33       - string:
34           name: DEPLOY_SCENARIO
35           default: 'onap-nofeature-noha'
36           description: 'Scenario to deploy and test'
37       - string:
38           name: DEPLOY_TYPE
39           default: 'cloud'
40           description: 'Type of the deployment'
41       - string:
42           name: TEST_TYPE
43           default: 'oom-healthcheck'
44           description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
45       - string:
46           name: NORDIX_ARM_REPO_URL
47           default: 'https://artifactory.nordix.org/artifactory'
48           description: 'URL to Nordix Artifactory'
49       - string:
50           name: NORDIX_HARBOR_REPO_URL
51           default: 'registry.nordix.org'
52           description: 'URL to Nordix Harbor'
53       - string:
54           name: XTESTING_REPO_URL
55           default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
56           description: 'URL to Nordix xtesting-onap repository'
57       - string:
58           name: ENGINE_ANSIBLE_PARAMS
59           default: ''
60           description: 'Extra parameters that can be added when run the play books.'
61
62 # macros used by all job types on baremetal
63 - parameter:
64     name: 'onap-baremetal-parameter-macro-legacy'
65     parameters:
66       - string:
67           name: PROVISIONER_TYPE
68           default: 'bifrost'
69           description: 'Provisioner to use for provisioning nodes'
70       - string:
71           name: INSTALLER_TYPE
72           default: 'kubespray'
73           description: 'Installer to use for deploying the scenario'
74       - string:
75           name: DEPLOY_SCENARIO
76           default: 'onap-nofeature-noha'
77           description: 'Scenario to deploy and test'
78       - string:
79           name: DEPLOY_TYPE
80           default: 'baremetal'
81           description: 'Type of the deployment'
82       - string:
83           name: TEST_TYPE
84           default: 'oom-healthcheck'
85           description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
86       - string:
87           name: NORDIX_ARM_REPO_URL
88           default: 'https://artifactory.nordix.org/artifactory'
89           description: 'URL to Nordix Artifactory'
90       - string:
91           name: NORDIX_HARBOR_REPO_URL
92           default: 'registry.nordix.org'
93           description: 'URL to Nordix Harbor'
94       - string:
95           name: XTESTING_REPO_URL
96           default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
97           description: 'URL to Nordix xtesting-onap repository'
98       - string:
99           name: ENGINE_ANSIBLE_PARAMS
100           default: ''
101           description: 'Extra parameters that can be added when run the play books.'
102
103 - builder:
104     name: 'onap-deploy-macro-legacy'
105     builders:
106       - shell:
107           !include-raw: ./wait-for-pkg-manager.sh
108       - shell:
109           !include-raw: ./onap-deploy.sh
110
111 - builder:
112     name: 'onap-deploy-baremetal-macro-legacy'
113     builders:
114       - shell:
115           !include-raw: ./wait-for-pkg-manager.sh
116       - shell:
117           !include-raw: ./onap-deploy-baremetal.sh
118
119 - builder:
120     name: 'oom-hc-macro-legacy'
121     builders:
122       - shell:
123           !include-raw: ./oom-healthcheck.sh
124
125 - builder:
126     name: 'oom-hc-baremetal-macro-legacy'
127     builders:
128       - shell:
129           !include-raw: ./oom-healthcheck.sh
130
131 - builder:
132     name: 'onap-healthcheck-macro-legacy'
133     builders:
134       - shell:
135           !include-raw: ./onap-healthcheck.sh
136
137 - builder:
138     name: 'onap-healthcheck-baremetal-macro-legacy'
139     builders:
140       - shell:
141           !include-raw: ./onap-healthcheck.sh
142
143 - builder:
144     name: 'promote-onap-macro-legacy'
145     builders:
146       - shell:
147           !include-raw: ./promote-onap.sh
148
149 # vim: set ts=2 sw=2 expandtab: