Skip to content

Commit e0327db

Browse files
authored
Merge pull request #791 from gradle/erichaagdev/wait-timeout-f
Scripts wait longer for builds to ingest when `--fail-if-not-fully-cacheable` is used
2 parents de05cda + 5f47a32 commit e0327db

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ val isDevelopmentRelease = !hasProperty("finalRelease")
6161
val releaseVersion = releaseVersion()
6262
val releaseNotes = releaseNotes()
6363
val distributionVersion = distributionVersion()
64-
val buildScanSummaryVersion = "1.0.1-2024.1"
64+
val buildScanSummaryVersion = "1.0.2-2024.1"
6565

6666
allprojects {
6767
version = releaseVersion.get()

components/scripts/lib/build-scan-online.sh

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ fetch_build_scan_data() {
9595
args+=("--brief-logging")
9696
fi
9797

98+
if [[ "${fail_if_not_fully_cacheable}" == "on" ]]; then
99+
args+=("--build-scan-availability-wait-timeout" "60")
100+
fi
101+
98102
for run_num in "${!build_scan_urls[@]}"; do
99103
args+=( "${run_num},${build_scan_urls[run_num]}" )
100104
done

release/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
> [!IMPORTANT]
22
> The distributions of the Develocity Build Validation Scripts prefixed with `gradle-enterprise` are deprecated and will be removed in a future release. Migrate to the distributions prefixed with `develocity` instead.
33
4+
- [FIX] Scripts do not wait long enough for build scans to become available when `--fail-if-not-fully-cacheable` is used
45
- [FIX] Successful exit code returned when performance characteristics are unknown and `--fail-if-not-fully-cacheable` is used
56
- [FIX] Gradle experiments do not disable background Build Scan publication
67
- [FIX] Common Custom User Data Gradle plugin not injected for Gradle builds

0 commit comments

Comments
 (0)