Skip to content

Commit 556ebc0

Browse files
fix: move CFS feed credentials to gradle.properties
Moves GraphDeveloperExperiences_Public credentials from pipeline script step to gradle.properties. The token will be overridden via ADO environment variables at pipeline runtime. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d4701eb commit 556ebc0

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.azure-pipelines/daily-ci-build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ extends:
4343
- checkout: self
4444
submodules: recursive
4545

46-
- script: |
47-
mkdir -p ~/.gradle
48-
echo "GraphDeveloperExperiences_PublicUsername=microsoftgraph" >> ~/.gradle/gradle.properties
49-
echo "GraphDeveloperExperiences_PublicPassword=$(System.AccessToken)" >> ~/.gradle/gradle.properties
50-
displayName: Configure Gradle credentials for CFS feed
51-
5246
- task: Gradle@4
5347
displayName: Build and Test SDK
5448
inputs:

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ mavenArtifactSuffix =
3737
#enable mavenCentralPublishingEnabled to publish to maven central
3838
mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
3939
mavenCentralPublishingEnabled=false
40+
41+
# Azure Artifacts CFS feed credentials
42+
GraphDeveloperExperiences_PublicUsername=microsoftgraph
43+
GraphDeveloperExperiences_PublicPassword=PERSONAL_ACCESS_TOKEN

0 commit comments

Comments
 (0)