From: Shane Synan Date: Mon, 28 Nov 2016 11:39:49 +0000 (-0600) Subject: Retry Chocolatey install to workaround failures X-Git-Tag: travis-deploy-test~339^2~1 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=19f50b66742c42f9139d34a61a3198981dfbe5ed Retry Chocolatey install to workaround failures Automatically retry up to 3 times on failure when installing Chocolatey modules, using the 'appveyor-retry' script. This can be removed later if needed. Sometimes Chocolatey returns a 404 for a package that exists. This happens a lot. The official fix is to get the Business edition for the more-stable private CDN, but since we're an open-source community effort, sometimes a little kludgery goes a long way. See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488 And https://github.com/appveyor/ci/issues/418 --- diff --git a/scripts/build/appveyorHelp.psm1 b/scripts/build/appveyorHelp.psm1 index 3cbf4681..a802a005 100644 --- a/scripts/build/appveyorHelp.psm1 +++ b/scripts/build/appveyorHelp.psm1 @@ -122,7 +122,10 @@ function SETUP-QT() function Install-ChocolatelyModule([string] $module, [string[]] $myargs) { Write-Host "Install chocolately package $module" - LogExec cinst $module @myargs -y + LogExec appveyor-retry cinst $module @myargs -y + # Retry installation in case it fails; remove 'appveyor-retry' to run in a generic manner + # See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488 + # And https://github.com/appveyor/ci/issues/418 } function Install-CmakeGitModule([string] $url, [hashtable] $arguments)