Skip to content

Commit f72ea4e

Browse files
Steve Ramageclaude
andcommitted
ci: enable build scans via -PbuildScan instead of --scan
The Develocity plugin is now applied explicitly and gates scan publishing on the `-PbuildScan` opt-in (publishing.onlyIf). Pass that property from CI so release builds keep publishing scans. `--scan` is dropped: it would force publishing even without the opt-in, which now fails because the terms of use are only accepted when `-PbuildScan` is set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c77aed8 commit f72ea4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ci/release.Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pipeline {
355355
sh("""
356356
mkdir -p ./build
357357
./generate-changelog > build/CHANGELOG
358-
./gradlew --no-daemon -I ./build-cache-init.gradle.kts -I ./repo-cache-init.gradle.kts --build-cache build buildPlugin --scan
358+
./gradlew --no-daemon -I ./build-cache-init.gradle.kts -I ./repo-cache-init.gradle.kts --build-cache build buildPlugin -PbuildScan
359359
""")
360360
script {
361361
if (env.BRANCH_NAME ==~ /^([0-9][0-9][0-9]\.x)$/) {
@@ -378,7 +378,7 @@ pipeline {
378378
"""
379379
)
380380
sh("""
381-
./gradlew --no-daemon -I ./build-cache-init.gradle.kts --build-cache publishPluginStandalone --scan
381+
./gradlew --no-daemon -I ./build-cache-init.gradle.kts --build-cache publishPluginStandalone -PbuildScan
382382
""")
383383
}
384384
else {

0 commit comments

Comments
 (0)