Skip to content

Commit

Permalink
Revert "build-build-images: migrate conditional_stage to smart_stage"
Browse files Browse the repository at this point in the history
This reverts commit 3043700.

Change-Id: Icb3fef868239dc179ce8d36609025211d8767938
  • Loading branch information
okin committed Dec 3, 2024
1 parent b087fe9 commit 319bb75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions buildscripts/scripts/build-build-images.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ def main() {
}
}

// TODO: here it would be nice to iterate through all known distros
// and use a conditional_stage(distro in distros) approach
def stages = all_distros.collectEntries { distro ->
[
("${distro}") : {
smart_stage(name: "Build ${distro}", condition: distro in distros) {
[("${distro}") : {
conditional_stage("Build\n${distro}", distro in distros) {
def image_name = "${distro}:${vers_tag}";
def distro_mk_file_name = "${real_distro_name[distro].toUpperCase().replaceAll('-', '_')}.mk";
def docker_build_args = (""
Expand Down Expand Up @@ -122,7 +123,7 @@ def main() {
}
def images = parallel(stages);

smart_stage(name: 'upload images', condition: publish_images) {
conditional_stage('upload images', publish_images) {
docker.withRegistry(DOCKER_REGISTRY, "nexus") {
images.each { distro, image ->
if (image) {
Expand Down

0 comments on commit 319bb75

Please sign in to comment.