Skip to content

Build.ps1: More detailed exception printing #71115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Build.ps1: More detailed exception printing #71115

merged 1 commit into from
Jan 24, 2024

Conversation

tristanlabelle
Copy link
Contributor

This should help diagnose errors such as in https://ci-external.swift.org/job/swift-main-windows-toolchain/34/console :

C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1 : Exception calling 
"DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
    + CategoryInfo          : NotSpecified: (:) [build.ps1], MethodInvocationException
    + FullyQualifiedErrorId : WebException,build.ps1

Here's an example output from a synthetic DownloadFile failure:
image

@compnerd
Copy link
Member

@swift-ci please smoke test

@compnerd compnerd enabled auto-merge January 24, 2024 17:17
@compnerd
Copy link
Member

CC: @shahmishal

@compnerd
Copy link
Member

@swift-ci please smoke test Linux platform

@compnerd
Copy link
Member

@swift-ci please smoke test macOS platform

@shahmishal shahmishal disabled auto-merge January 24, 2024 21:20
@shahmishal shahmishal merged commit ec7a7c6 into swiftlang:main Jan 24, 2024
@shahmishal
Copy link
Member

Thanks I just merged it as it only impacts Windows CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants