Skip to content

Combined settings for signing and release stages#48761

Merged
raych1 merged 3 commits intomainfrom
users/raych1/fix-signin-stage
Apr 10, 2026
Merged

Combined settings for signing and release stages#48761
raych1 merged 3 commits intomainfrom
users/raych1/fix-signin-stage

Conversation

@raych1
Copy link
Copy Markdown
Member

@raych1 raych1 commented Apr 10, 2026

This pull request combines the CFS mirror settings and customized settings for signing stage and release stage.

Key Changes

  • Modified Publish-MavenPackages.ps1 and SignAndHash-MavenPackages.ps1 scripts to use the --global-settings flag (instead of --settings) when specifying the Maven settings file, aligning with best practices and ensuring the correct settings are applied globally.
  • Added the /eng/pipelines/templates/steps/maven-authenticate.yml template and MavenAuthenticate@0 task to multiple stages in the archetype-java-release-batch.yml pipeline to ensure proper Maven authentication with Azure Artifacts during artifact download, signing, and publishing steps.

@raych1 raych1 requested a review from weshaggard as a code owner April 10, 2026 04:53
Copilot AI review requested due to automatic review settings April 10, 2026 04:53
@raych1 raych1 requested a review from benbp as a code owner April 10, 2026 04:53
@raych1 raych1 self-assigned this Apr 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Java release/signing automation to use a consolidated Maven settings/authentication approach across signing and release stages, aiming to ensure consistent mirror usage and successful access to Azure Artifacts feeds during publishing.

Changes:

  • Updated Maven invocation in signing/publishing scripts to pass the release settings file via --global-settings.
  • Added an Azure Artifacts Maven mirror configuration to the DocMS daily update Maven settings.
  • Inserted Maven authentication/mirror setup steps into key jobs in the Java release batch pipeline.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
eng/scripts/SignAndHash-MavenPackages.ps1 Switch Maven settings flag to --global-settings for signing/hashing.
eng/scripts/Publish-MavenPackages.ps1 Switch Maven settings flag to --global-settings for publishing/deploy.
eng/repo-docs/docms/daily.update.setting.xml Add mirror configuration for Azure Artifacts feed.
eng/pipelines/templates/stages/archetype-java-release-batch.yml Add Maven authentication/mirror setup steps across signing/release/integration jobs.

@raych1 raych1 merged commit a8e02c1 into main Apr 10, 2026
51 checks passed
@raych1 raych1 deleted the users/raych1/fix-signin-stage branch April 10, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants