File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ extends:
2121 parameters :
2222 pool :
2323 name : Azure-Pipelines-1ESPT-ExDShared
24+ image : ubuntu-latest
2425 os : linux
2526 sdl :
2627 sourceAnalysisPool :
@@ -42,13 +43,21 @@ extends:
4243 - checkout : self
4344 submodules : recursive
4445
45- - task : JavaToolInstaller@0
46- displayName : Set up Java
46+ - script : |
47+ sed -i "/mavenCentral()/d" build.gradle
48+ sed -i "/gradlePluginPortal()/d" settings.gradle
49+ sed -i "/mavenCentral()/d" settings.gradle
50+ displayName: Strip public repos for network-isolated build
51+
52+ - task : Gradle@4
53+ displayName : Build and Test SDK
4754 inputs :
48- versionSpec : ' 17'
55+ gradleWrapperFile : ' gradlew'
56+ workingDirectory : ' $(Build.SourcesDirectory)'
57+ tasks : ' assemble test'
58+ options : ' --no-daemon -PGraphDeveloperExperiencesPublicPassword=$(ARTIFACTS_PAT)'
59+ publishJUnitResults : true
60+ testResultsFiles : ' **/TEST-*.xml'
61+ javaHomeOption : ' JDKVersion'
62+ jdkVersionOption : ' 1.17'
4963 jdkArchitectureOption : ' x64'
50- jdkSourceOption : ' PreInstalled'
51-
52- - script : chmod +x gradlew && ./gradlew assemble
53- displayName : Build SDK
54- workingDirectory : $(Build.SourcesDirectory)
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ sourceSets {
3131repositories {
3232 // You can declare any Maven/Ivy/file repository here.
3333 mavenCentral()
34+ maven {
35+ url ' https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
36+ name ' GraphDeveloperExperiencesPublic'
37+ credentials(PasswordCredentials )
38+ authentication {
39+ basic(BasicAuthentication )
40+ }
41+ }
3442}
3543
3644apply from : " gradle/dependencies.gradle"
@@ -83,6 +91,14 @@ publishing {
8391 name = " ADO"
8492 url = layout. buildDirectory. dir(" publishing-repository" )
8593 }
94+ maven {
95+ url ' https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
96+ name ' GraphDeveloperExperiencesPublic'
97+ credentials(PasswordCredentials )
98+ authentication {
99+ basic(BasicAuthentication )
100+ }
101+ }
86102 }
87103}
88104
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ mavenArtifactSuffix =
4040mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
4141mavenCentralPublishingEnabled =true
4242
43+ # Azure Artifacts CFS feed credentials
44+ GraphDeveloperExperiencesPublicUsername =microsoftgraph
45+ GraphDeveloperExperiencesPublicPassword =PERSONAL_ACCESS_TOKEN
46+
4347
4448
4549
Original file line number Diff line number Diff line change 1+ pluginManagement {
2+ repositories {
3+ gradlePluginPortal()
4+ mavenCentral()
5+ maven {
6+ url ' https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
7+ name ' GraphDeveloperExperiencesPublic'
8+ credentials(PasswordCredentials )
9+ authentication {
10+ basic(BasicAuthentication )
11+ }
12+ }
13+ }
14+ }
15+
116/*
217 * This file was generated by the Gradle 'init' task.
318 *
You can’t perform that action at this time.
0 commit comments