Skip to content

Commit f0b8b5d

Browse files
authored
Logging level when fetching Build Scan data from Gradle Enterprise is incorrect (#397)
* Flip condition for when brief logging is used * Update release.md * Use verbose logging when fetching single Build Scan * Wrap verbose_logging in quotes
1 parent 1055c26 commit f0b8b5d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fetch_single_build_scan() {
4848
local build_scan_url="$1"
4949

5050
local build_scan_data
51-
build_scan_data="$(fetch_build_scan_data brief_logging "${build_scan_url}")"
51+
build_scan_data="$(fetch_build_scan_data 'verbose_logging' "${build_scan_url}")"
5252

5353
parse_single_build_scan "${build_scan_data}"
5454
}
@@ -59,8 +59,9 @@ fetch_build_scans_and_build_time_metrics() {
5959
local build_scan_urls=("$@")
6060

6161
local brief_logging
62-
if [[ "$build_cache_metrics_only" != 'build_cache_metrics_only' ]]; then
62+
if [[ "${build_cache_metrics_only}" == 'build_cache_metrics_only' ]]; then
6363
brief_logging="brief_logging"
64+
else
6465
info "Fetching build scan data"
6566
fi
6667

release/changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- [NEW] TBD
1+
- [FIX] Logging level when fetching Build Scan data from Gradle Enterprise is incorrect

0 commit comments

Comments
 (0)