3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2021 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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
23 # This file contains job template definition for building the full stack of Metal3
24 # from source. This job can be triggered on PRs manually. It creates a pipeline job.
25 # The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
28 id: fullstack_building_test
29 name: '{job_prefix}_fullstack_building_test'
30 description: "Build and test a Metal3 cluster stack from source."
31 project-type: pipeline
39 description: 'Gerrit refspec of the patch we want to test. Example: refs/changes/84/800084/22'
41 name: IRONIC_IMAGE_REPO_COMMIT
43 description: 'Metal3 Ironic image Git repository commit hash to build'
45 name: IRONIC_IMAGE_BRANCH
47 description: 'Metal3 Ironic image Git repository branch to build'
49 name: IRONIC_INSPECTOR_REFSPEC
51 description: 'Gerrit refspec of the patch we want to test. Example: refs/changes/84/800084/22'
54 default: 'https://opendev.org/openstack/ironic-python-agent.git'
55 description: "The default Git repository of IPA"
59 description: 'Ironic Python Agent repository reference to use for the build. Example: refs/changes/84/800084/22'
63 description: 'Ironic Python Agent repository branch to build'
65 name: IPA_BUILDER_REPO
66 default: 'https://opendev.org/openstack/ironic-python-agent-builder.git'
67 description: 'Ironic Python Agent builder Git repository'
69 name: IPA_BUILDER_BRANCH
71 description: 'Ironic Python Agent builder Git repository tool branch'
73 name: IPA_BUILDER_COMMIT
75 description: 'Ironic Python Agent builder Git repository tool commit'
77 name: METAL3_DEV_ENV_REPO
78 default: 'https://github.com/metal3-io/metal3-dev-env.git'
79 description: 'The Git repository of metal3-dev-env'
81 name: METAL3_DEV_ENV_BRANCH
83 description: 'Metal3 dev-env Git repository branch'
85 name: METAL3_DEV_ENV_COMMIT
87 description: 'Metal3 dev-env Git repository commit'
89 name: BUILD_BMO_LOCALLY
91 description: 'Enable or disable BMO local building (enabled by default)'
93 name: BUILD_CAPM3_LOCALLY
95 description: 'Enable or disable CAPM3 local building (enabled by default)'
97 name: BUILD_IPAM_LOCALLY
99 description: 'Enable or disable IPAM local building (enabled by default)'
101 name: BUILD_CAPI_LOCALLY
103 description: 'Enable or disable CAPI local building (disabled by default)'
106 default: 'https://github.com/metal3-io/baremetal-operator.git'
107 description: 'The Git reposiotry used to build BMO'
111 description: 'Bare Metal Operator Git repository branch to build'
115 description: 'Cluster API provider Metal3 Git repository commit hash to build'
118 default: 'https://github.com/metal3-io/cluster-api-provider-metal3.git'
119 description: 'The Git reposiotry used to build Cluster API provider Metal3'
123 description: 'Cluster API provider Metal3 Git repository branch to build'
127 description: 'Cluster API provider Metal3 Git repository commit hash to build'
130 default: 'https://github.com/metal3-io/ip-address-manager.git'
131 description: 'IP Address Manager Git repository branch to build'
135 description: 'IP Address Manager Git repository branch to build'
139 description: 'IP Address Manager Git repository commit hash to build'
142 default: 'https://github.com/kubernetes-sigs/cluster-api.git'
143 description: 'Cluster API Git repository branch to build'
147 description: 'Cluster API Git repository branch to build'
151 description: 'Cluster API Git repository commit hash to build'
153 name: PROJECT_REPO_ORG
154 default: '{repo[org]}'
155 description: 'Project github repo org name'
157 name: PROJECT_REPO_NAME
158 default: '{repo[name]}'
159 description: 'Project github repo name'
161 name: ghprbActualCommit
163 description: 'CI Repo branch for triggering manual build'
165 name: ghprbAuthorRepoGitUrl
166 default: 'https://github.com/{repo[org]}/{repo[name]}.git'
167 description: 'CI Repo URL for triggering manual build'
169 name: ghprbTargetBranch
171 description: 'Target branch of the PR'
175 description: 'Configures IPA builder upload mode (staging/review)'
181 artifact-days-to-keep: -1
182 artifact-num-to-keep: -1
184 url: https://github.com/{repo[org]}/{repo[name]}
187 - github-pull-request:
189 - '{ci_github_admin_user}'
190 org-list: "{ci_github_whitelist_org}"
192 auth-id: "{ci_ghprb_auth_id}"
193 trigger-phrase: '((.|\n)*\s)?/test-metal3-fullstack(\s(.|\n)*)?'
194 skip-build-phrase: '/skip-test'
195 only-trigger-phrase: True
198 auto-close-on-fail: False
199 allow-whitelist-orgs-as-admins: True
200 white-list-target-branches:
202 status-context: "test-metal3-fullstack"
203 success-status: "Passed"
204 failure-status: "Failed"
205 error-status: "Error"
206 cancel-builds-on-update: True
210 url: "{ci_github_repo}"
211 credentials-id: "{ci_github_jenkins_credentials_id}"
215 refspec: '+refs/heads/*:refs/remotes/origin/*'
220 - "ci/scripts/image_scripts/ipa_builder_elements/.*"
221 - "ci/scripts/image_scripts/build_ipa.sh"
222 - "ci/scripts/image_scripts/run_build_ironic.sh"
223 - "ci/scripts/image_scripts/start_centos_fullstack_build.sh"
224 script-path: "ci/jobs/fullstack_building.pipeline"
225 lightweight-checkout: False