From dc96d6507e1fdd1b13a21301ef37aa6838ed793d Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Tue, 8 Feb 2022 11:19:46 -0600 Subject: ci: Propagate downloader errors and lower timeout This change enables download / network failures to propagate up and fail the job for Windows builds. It also reduces the job timeout in case the network hangs. Signed-off-by: Steven Koo --- .ci/templates/steps-build-uhd-msbuild.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.ci/templates/steps-build-uhd-msbuild.yml') diff --git a/.ci/templates/steps-build-uhd-msbuild.yml b/.ci/templates/steps-build-uhd-msbuild.yml index 31bb1dfaa..1e030e115 100644 --- a/.ci/templates/steps-build-uhd-msbuild.yml +++ b/.ci/templates/steps-build-uhd-msbuild.yml @@ -24,9 +24,14 @@ steps: -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALL_DIR%/scripts/buildsystems/vcpkg.cmake mkdir ${{ parameters.uhdImageDir }} python ${{ parameters.uhdBuildDir }}/utils/uhd_images_downloader.py -i ${{ parameters.uhdImageDir }} + displayName: Download uhd-images + timeoutInMinutes: 30 + +- script: | cd $(Pipeline.Workspace) rmdir ${{ parameters.uhdBuildDir }} /s /q - displayName: Download uhd-images + displayName: Clean build directory + - script: | mkdir ${{ parameters.uhdBuildDir }} cd ${{ parameters.uhdBuildDir }} @@ -44,11 +49,13 @@ steps: %UHD_CI_CMAKE_OPTIONS% ^ -G "$(cmakeCompiler)" -A $(cmakeArch) displayName: cmake msbuild UHD + - script: | cd ${{ parameters.uhdBuildDir }} call "C:\Program Files (x86)\Microsoft Visual Studio\$(vsYear)\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" $(vsArch) msbuild.exe ALL_BUILD.vcxproj /p:configuration=release displayName: msbuild UHD + - script: | cd ${{ parameters.uhdBuildDir }} ctest --no-compress-output --output-on-failure -T test -- cgit v1.2.3