jenkins-infra / pipeline-library

Collection of custom steps and variables for our Jenkins instance(s)
295 stars 136 forks source link

fix(buildDockerAndPublishImage) specify platform to `container-structure-test` #849

Closed dduportal closed 6 months ago

dduportal commented 6 months ago

This change allows container-structure-test to work with Windows images by passing the --platform flag.

Related to https://github.com/jenkins-infra/helpdesk/issues/4048

Tested with the followings:


Note: The test case for Docker bake was not needed strictly speaking. By setting it up as part of this PR, it makes it explicit and clear that only one of the platforms (amd64) on the host OS is tested when passing multiple

dduportal commented 6 months ago

Self merging to unblock https://github.com/jenkins-infra/helpdesk/issues/4048