Skip to content

ceph-dev-pipeline/build/Jenkinsfile: Skip debug containers#2525

Closed
Matan-B wants to merge 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-skip-container
Closed

ceph-dev-pipeline/build/Jenkinsfile: Skip debug containers#2525
Matan-B wants to merge 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-skip-container

Conversation

@Matan-B
Copy link
Copy Markdown
Contributor

@Matan-B Matan-B commented Jan 13, 2026

#2497 introduced a debug flavor. This seems to cause conflicts with the image being pushed to quay as one of the flavors might override the other.

One possible solution to this would be to name the debug images differently. However, since the current behavior might cause unexpected testing results. Skip building containers for debug builds at all.

DOCKER_HUB_CREDS = credentials('dgalloway-docker-hub')
}
when {
expression { return build_matrix["${DIST}_${ARCH}"] == true }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the "builder container" stage, which builds a container for the build. I think it needs to stay.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please help locating which stage needs to be adjusted to skip the debug containers in quay?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated accordingly. Thanks @djgalloway.
Perhaps we should, instead of skipping, build an additional container with a different tag so the two won't conflict?

Comment thread ceph-dev-pipeline/build/Jenkinsfile Outdated
@Matan-B Matan-B force-pushed the wip-matanb-skip-container branch from de4769d to 356126b Compare January 21, 2026 14:49
@Matan-B Matan-B requested review from djgalloway and dmick January 21, 2026 15:05
Comment thread ceph-dev-pipeline/build/Jenkinsfile Outdated
ceph#2497 introduced a debug flavor.
This seems to cause conflicts with the image being pushed to quay as
one of the flavors might override the other.

One possible solution to this would be to name the debug images
differently. However, since the current behavior might cause unexpected
testing results. Skip building containers for debug builds at all.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
@Matan-B Matan-B force-pushed the wip-matanb-skip-container branch from 356126b to a997c92 Compare January 21, 2026 19:02
when {
expression { env.CI_CONTAINER == 'true' && container_distros.contains(env.DIST) }
// Do not build a container for debug builds
expression { env.CI_CONTAINER == 'true' && container_distros.contains(env.DIST) && env.FLAVOR != 'debug'}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please add a space before the closing bracket

@Matan-B
Copy link
Copy Markdown
Contributor Author

Matan-B commented Jan 22, 2026

I think a dedicated tag might be a better solution: ceph/ceph#67041
Closing for now.

@Matan-B Matan-B closed this Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants