Files
runner-images/images/win/scripts/Installers/Install-Sbt.ps1
Aleksandr Chebotov edce722a68 Improve choco stability by adding retry logic on Windows images (#721)
Add retry logic for choco install to avoid random failures
2020-04-17 10:53:30 +03:00

21 lines
562 B
PowerShell

################################################################################
## File: Install-Sbt.ps1
## Desc: Install sbt for Windows
################################################################################
$ErrorActionPreference = "Stop"
Import-Module -Name ImageHelpers
# Install the latest version of sbt.
# See https://chocolatey.org/packages/sbt
Choco-Install -PackageName sbt
$env:SBT_HOME="${env:ProgramFiles(x86)}\sbt"
# Add sbt binaries to the path
Add-MachinePathItem "$env:SBT_HOME\bin"
$env:Path = Get-MachinePath
# Done
exit 0