Skip to content

Commit 143ff90

Browse files
Apply PAT-less Maven auth + network-isolation mirror to ci-build.yml
Mirror the daily-ci change: replace the ARTIFACTS_PAT server with MavenAuthenticate@0 (System.AccessToken) and route resolution through the feed via mirrorOf=*. The GPG signing profile is preserved, and deploy still stages locally via altDeploymentRepository, so no distributionManagement/pom change is needed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 279e634 commit 143ff90

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.azure-pipelines/ci-build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ extends:
7373
7474
$settingsXml = @"
7575
<settings>
76-
<servers>
77-
<server>
78-
<id>GraphDeveloperExperiencesPublic</id>
79-
<username>microsoftgraph</username>
80-
<password>${{ variables.ARTIFACTS_PAT }}</password>
81-
</server>
82-
</servers>
76+
<mirrors>
77+
<mirror>
78+
<id>GraphDeveloperExperiences_Public</id>
79+
<mirrorOf>*</mirrorOf>
80+
<url>https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1</url>
81+
</mirror>
82+
</mirrors>
8383
<profiles>
8484
<profile>
8585
<id>signing</id>
@@ -96,6 +96,11 @@ extends:
9696
$settingsXml | Set-Content (Join-Path $settingsDir "settings.xml") -Encoding UTF8
9797
displayName: Configure Maven settings
9898
99+
- task: MavenAuthenticate@0
100+
displayName: Authenticate to Azure Artifacts feed (PAT-less)
101+
inputs:
102+
artifactsFeeds: 'GraphDeveloperExperiences_Public'
103+
99104
- script: ./mvnw install -Psigning --no-transfer-progress
100105
displayName: Publish to local Maven for verification
101106
condition: contains(variables['build.sourceBranch'], 'refs/tags/v')

0 commit comments

Comments
 (0)