upstream CI: Build containers in parallel jobs

In the current build container pipeline, all steps are serialized in a
single job, and if one of the jobs fail to build, due to broken
dependent image, or some Azure glitch, like slow connection, the only
way to rebuild the failed container is to rebuild all containers.

By building containers in parallel jobs, if a container fails to build
it is possible to restart only the failed job.
This commit is contained in:
Rafael Guterres Jeffman
2023-06-09 11:02:03 -03:00
parent ba7bf0f6cd
commit 6845acd596

View File

@@ -13,34 +13,49 @@ trigger: none
pool: pool:
vmImage: 'ubuntu-20.04' vmImage: 'ubuntu-20.04'
jobs: stages:
- template: templates/build_container.yml - stage: CentOS_7
parameters: dependsOn: []
job_name_suffix: Centos7 jobs:
container_name: centos-7 - template: templates/build_container.yml
build_scenario_name: centos-7-build parameters:
job_name_suffix: Centos7
container_name: centos-7
build_scenario_name: centos-7-build
- template: templates/build_container.yml - stage: CentOS_8_Stream
parameters: dependsOn: []
job_name_suffix: C8S jobs:
container_name: c8s - template: templates/build_container.yml
build_scenario_name: c8s-build parameters:
job_name_suffix: C8S
container_name: c8s
build_scenario_name: c8s-build
- template: templates/build_container.yml - stage: CentOS_9_Stream
parameters: dependsOn: []
job_name_suffix: C9S jobs:
container_name: c9s - template: templates/build_container.yml
build_scenario_name: c9s-build parameters:
job_name_suffix: C9S
container_name: c9s
build_scenario_name: c9s-build
- template: templates/build_container.yml - stage: Fedora_Latest
parameters: dependsOn: []
job_name_suffix: FedoraLatest jobs:
container_name: fedora-latest - template: templates/build_container.yml
build_scenario_name: fedora-latest-build parameters:
job_name_suffix: FedoraLatest
container_name: fedora-latest
build_scenario_name: fedora-latest-build
- template: templates/build_container.yml - stage: Fedora_Rawhide
parameters: dependsOn: []
job_name_suffix: FedoraRawhide jobs:
container_name: fedora-rawhide - template: templates/build_container.yml
build_scenario_name: fedora-rawhide-build parameters:
job_name_suffix: FedoraRawhide
container_name: fedora-rawhide
build_scenario_name: fedora-rawhide-build