Skip to content

Commit e3a9d5d

Browse files
fix: strip mavenCentral() and gradlePluginPortal() in pipeline
CFS blocks direct access to public repos with a hard socket error. Gradle treats this as a failure rather than falling through to the next repository. Remove public repo declarations so only the CFS upstream feed is used for dependency resolution. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 527ec14 commit e3a9d5d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ extends:
4949
sed -i "/spotbugsMain/,/^}/d" build.gradle
5050
sed -i "/spotbugsTest/,/^}/d" build.gradle
5151
sed -i "/sonarqube {/,/^}/d" build.gradle
52-
displayName: Remove code analysis plugins (not available on CFS upstream feed)
52+
sed -i "/mavenCentral()/d" build.gradle
53+
sed -i "/gradlePluginPortal()/d" settings.gradle
54+
sed -i "/mavenCentral()/d" settings.gradle
55+
displayName: Strip plugins and public repos for network-isolated build
5356
5457
- task: Gradle@4
5558
displayName: Build and Test SDK

0 commit comments

Comments
 (0)