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
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 whole Metal3 stack
24 # from source. This job can be triggered manually. It creates a pipeline job.
25 # The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
28 id: periodic_fullstack_building
29 name: '{job_prefix}_daily_periodic_fullstack_building'
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'
155 description: 'Configures IPA builder upload mode (staging/review)'
159 url: https://github.com/Nordix/ironic-python-agent.git
163 artifact-days-to-keep: -1
164 artifact-num-to-keep: -1
167 - timed: "0 4 * * 1,3,5,7"
173 url: "{ci_github_repo}"
174 credentials-id: "{ci_github_jenkins_credentials_id}"
178 refspec: '+refs/heads/*:refs/remotes/origin/*'
183 - "ci/scripts/image_scripts/ipa_builder_elements/.*"
184 - "ci/scripts/image_scripts/build_ipa.sh"
185 - "ci/scripts/image_scripts/run_build_ironic.sh"
186 - "ci/scripts/image_scripts/start_centos_fullstack_build.sh"
187 script-path: "ci/jobs/fullstack_building.pipeline"
188 lightweight-checkout: False