diff --git a/nightly-main/windows/1809/Dockerfile b/nightly-main/windows/1809/Dockerfile index 84fab848..d5e46d3a 100644 --- a/nightly-main/windows/1809/Dockerfile +++ b/nightly-main/windows/1809/Dockerfile @@ -130,6 +130,14 @@ RUN Write-Host -NoNewLine ('Downloading {0} ... ' -f ${env:VSB}); # Install Swift toolchain. ARG SWIFT_RELEASE_METADATA=https://download.swift.org/development/windows10/latest-build.json RUN $Release = curl.exe -sL ${env:SWIFT_RELEASE_METADATA} | ConvertFrom-JSON; \ + Write-Host ('({0})' -f $Release); \ + Write-Host -NoNewLine 'Release metadata ... '; \ + if ($Release.dir -and $Release.download) { \ + Write-Host '✓'; \ + } else { \ + Write-Host '✘ Missing fields.'; \ + exit 1; \ + } \ $SWIFT_URL = "\"https://download.swift.org/development/windows10/$($Release.dir)/$($Release.download)\""; \ Write-Host -NoNewLine ('Downloading {0} ... ' -f ${SWIFT_URL}); \ Invoke-WebRequest -Uri ${SWIFT_URL} -OutFile installer.exe; \ diff --git a/nightly-main/windows/LTSC2022/Dockerfile b/nightly-main/windows/LTSC2022/Dockerfile index addb5e06..b359420d 100644 --- a/nightly-main/windows/LTSC2022/Dockerfile +++ b/nightly-main/windows/LTSC2022/Dockerfile @@ -130,6 +130,14 @@ RUN Write-Host -NoNewLine ('Downloading {0} ... ' -f ${env:VSB}); # Install Swift toolchain. ARG SWIFT_RELEASE_METADATA=https://download.swift.org/development/windows10/latest-build.json RUN $Release = curl.exe -sL ${env:SWIFT_RELEASE_METADATA} | ConvertFrom-JSON; \ + Write-Host ('({0})' -f $Release); \ + Write-Host -NoNewLine 'Release metadata ... '; \ + if ($Release.dir -and $Release.download) { \ + Write-Host '✓'; \ + } else { \ + Write-Host '✘ Missing fields.'; \ + exit 1; \ + } \ $SWIFT_URL = "\"https://download.swift.org/development/windows10/$($Release.dir)/$($Release.download)\""; \ Write-Host -NoNewLine ('Downloading {0} ... ' -f ${SWIFT_URL}); \ Invoke-WebRequest -Uri ${SWIFT_URL} -OutFile installer.exe; \ diff --git a/nightly-main/windows/LTSC2025/Dockerfile b/nightly-main/windows/LTSC2025/Dockerfile index 402ce19b..345ca616 100644 --- a/nightly-main/windows/LTSC2025/Dockerfile +++ b/nightly-main/windows/LTSC2025/Dockerfile @@ -130,6 +130,14 @@ RUN Write-Host -NoNewLine ('Downloading {0} ... ' -f ${env:VSB}); # Install Swift toolchain. ARG SWIFT_RELEASE_METADATA=https://download.swift.org/development/windows10/latest-build.json RUN $Release = curl.exe -sL ${env:SWIFT_RELEASE_METADATA} | ConvertFrom-JSON; \ + Write-Host ('({0})' -f $Release); \ + Write-Host -NoNewLine 'Release metadata ... '; \ + if ($Release.dir -and $Release.download) { \ + Write-Host '✓'; \ + } else { \ + Write-Host '✘ Missing fields.'; \ + exit 1; \ + } \ $SWIFT_URL = "\"https://download.swift.org/development/windows10/$($Release.dir)/$($Release.download)\""; \ Write-Host -NoNewLine ('Downloading {0} ... ' -f ${SWIFT_URL}); \ Invoke-WebRequest -Uri ${SWIFT_URL} -OutFile installer.exe; \