Skip to content

Conversation

@TravisEz13
Copy link
Member

@TravisEz13 TravisEz13 commented Sep 4, 2025

…Linux

PR Summary

This pull request updates the build pipeline configuration and detection logic to support Azure Linux (azurelinux) as the primary Linux container image, replacing previous usage of Ubuntu and CBL-Mariner. It also enhances the environment detection in build.psm1 to recognize Azure Linux as a Mariner family distribution and updates package manager selection accordingly.

Pipeline configuration updates:

  • Replaced all references to the previous Linux container images (ubuntu-2004, cbl-mariner/build:2.0) in pipeline YAML files with mcr.microsoft.com/onebranch/azurelinux/build:3.0 to standardize on Azure Linux for builds. (.pipelines/PowerShell-Coordinated_Packages-Official.yml [1] .pipelines/PowerShell-Packages-Official.yml [2] .pipelines/PowerShell-Release-Official-Azure.yml [3] .pipelines/PowerShell-Release-Official.yml [4] .pipelines/apiscan-gen-notice.yml [5]

Environment detection improvements:

  • Updated the IsMariner environment flag in build.psm1 to include both mariner and azurelinux Linux IDs, ensuring Azure Linux is correctly detected as part of the Mariner family. (build.psm1 build.psm1L196-R196)

Package manager selection:

  • Modified the Get-RedHatPackageManager function in build.psm1 to use tdnf for Mariner/Azure Linux environments, improving compatibility with the new container image. (build.psm1 build.psm1R2210-R2211)

PR Context

PR Checklist

@TravisEz13 TravisEz13 added Compliance Related to compliance requirements CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log BackPort-7.4.x-Consider BackPort-7.5.x-Consider labels Sep 4, 2025
@TravisEz13 TravisEz13 self-assigned this Sep 5, 2025
@TravisEz13 TravisEz13 marked this pull request as ready for review September 5, 2025 17:18
@TravisEz13 TravisEz13 requested review from a team and jshigetomi as code owners September 5, 2025 17:18
@TravisEz13
Copy link
Member Author

/azp run PowerShell-CI-linux-packaging, PowerShell-Windows-Packaging-CI

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Sep 5, 2025

📣 Hey @@TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@TravisEz13 TravisEz13 deleted the azurelinux3-master branch September 6, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Migrated Backport-7.5.x-Migrated CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log Compliance Related to compliance requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants