Commit cc2ff51
Fix/daily ci pool image (#2098)
* fix: add missing image property to daily-ci pipeline pool configuration
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: update spotbugs plugin to 6.5.4
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: update sonarqube plugin to 7.3.0.8198
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update SpotBugs plugin version to 6.5.5
* fix: add pluginManagement repositories to settings.gradle
Adds gradlePluginPortal() and mavenCentral() as plugin repositories
to ensure plugins can be resolved in restricted network environments
like the Azure DevOps 1ESPT pipeline agents.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Downgrade SpotBugs plugin version to 6.5.4
* fix: make spotbugs/sonarqube plugins conditional for restricted CI environments
Moves spotbugs and sonarqube from the plugins block to buildscript
dependencies with conditional application. Pass -PskipCodeAnalysis
to skip loading these plugins in environments without external
Maven repository access (e.g., ADO 1ESPT pipeline agents).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Change build command from 'assemble' to 'build'
* fix: use system properties for skipCodeAnalysis flag
Project properties (-P) are not available in the buildscript block
during early Gradle evaluation. Switch to system properties (-D)
which are available everywhere via System.getProperty().
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: use Gradle@4 ADO task for daily-ci build
Replace shell script steps with the managed Gradle@4 task which
handles Java setup, dependency resolution, and JUnit test result
publishing natively within ADO infrastructure.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* revert: restore original plugins block in build.gradle
Reverts the conditional buildscript/skipCodeAnalysis changes now that
the daily-ci pipeline uses the managed Gradle@4 ADO task instead.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: match Go SDK daily-ci pool config (remove image property)
The Go SDK daily-ci pipeline works with the same pool without
specifying an image. Removing the image property to use the pool's
default image which has internet access. Also removes the
skipCodeAnalysis flag since build.gradle uses the standard plugins
block.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: enable 1ES internal module proxy for Java dependency resolution
Adds the java.internalModuleProxy feature flag (matching the Go SDK's
golang.internalModuleProxy pattern) to route dependency resolution
through the 1ES internal proxy, bypassing network isolation on the
Azure-Pipelines-1ESPT-ExDShared pool. Also restores image: ubuntu-latest
to match the working Go SDK pipeline configuration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: strip spotbugs/sonarqube plugins in daily-ci to test core dep resolution
Adds a sed step to remove the spotbugs and sonarqube plugin declarations
from build.gradle before running Gradle on network-isolated 1ES agents.
This tests whether the java.internalModuleProxy feature flag enables
Maven Central access for core dependencies (okhttp, etc.).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: also strip spotbugs/sonarqube config blocks from build.gradle
The previous sed only removed plugin declarations but left the
spotbugsMain, spotbugsTest, and sonarqube configuration blocks
which reference the removed plugins.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* test: add networkIsolation overrideAllowRules for Maven/Gradle repos
Attempts to whitelist Maven Central, Gradle Plugin Portal, and Gradle
services endpoints through 1ES network isolation override rules.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add network isolation policy to CI build pipeline
* fix: correct YAML indentation for settings.networkIsolationPolicy
Moves settings under parameters and removes the rejected
networkIsolation.overrideAllowRules parameter.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: route Gradle deps through CFS upstream Azure Artifacts feed
Generates an init.gradle script that redirects all Gradle repositories
(both dependencies and plugins) to the GraphDeveloperExperiences_Public
Azure Artifacts feed, which has Maven Central as a CFS upstream. This
complies with network isolation on 1ES agents by routing through the
approved Centralized Feed Service instead of public endpoints.
Also removes failed featureFlags and networkIsolationPolicy parameters
that are not supported for Java in 1ES Pipeline Templates.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: remove sed steps, let plugins resolve through CFS feed
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add CFS upstream feed to build.gradle and settings.gradle
Adds the GraphDeveloperExperiences_Public Azure Artifacts feed (with
Maven Central upstream) to both repositories and publishing.repositories
in build.gradle, and to pluginManagement in settings.gradle. Removes
the init.gradle pipeline workaround in favor of direct configuration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: add Gradle credentials step for CFS feed authentication
Writes GraphDeveloperExperiences_Public credentials to
~/.gradle/gradle.properties using System.AccessToken for
authentication against the Azure Artifacts CFS upstream feed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* 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>
* fix: pass CFS feed token via ADO pipeline variable
Overrides GraphDeveloperExperiences_PublicPassword at build time
using the ARTIFACTS_PAT pipeline variable passed via -P flag.
Configure ARTIFACTS_PAT as a secret variable in the ADO pipeline.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: remove underscore from Gradle repo name (identity constraint)
Gradle PasswordCredentials requires the repository name to contain
only letters and digits. Renames GraphDeveloperExperiences_Public
to GraphDeveloperExperiencesPublic across all config files.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: restore underscores in Azure Artifacts feed URLs
The Gradle repo name must be letters/digits only, but the actual
feed URLs must use the real feed name with underscores.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: restore sed step to strip spotbugs/sonarqube plugins
SpotBugs and SonarQube Gradle plugin marker artifacts are only
published to Gradle Plugin Portal, not Maven Central. The CFS
upstream feed proxies Maven Central but not the Plugin Portal,
so these plugins must be stripped before building.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* 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>
* feat: enable SpotBugs via Gradle@4 built-in inputs
Uses the Gradle@4 task's native SpotBugs support which resolves
the plugin via Maven coordinates (available on CFS feed) rather
than the Gradle Plugin Portal marker artifact.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* revert: remove SpotBugs from Gradle@4 inputs
Gradle@4 resolves SpotBugs from plugins.gradle.org which is blocked
by CFS. SpotBugs remains available in local dev and GitHub Actions CI.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8be1ced commit cc2ff51
4 files changed
Lines changed: 59 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
47 | 59 | | |
48 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
122 | 138 | | |
123 | 139 | | |
124 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
1 | 16 | | |
2 | 17 | | |
3 | 18 | | |
| |||
0 commit comments