Skip to content

Commit

Permalink
Update chocolatey to latest version (#38617)
Browse files Browse the repository at this point in the history
This commit ensures that chocolatey is the latest version before
installing Python on the Jenkins Windows workers. It fixes errors due to
a outdated chocolatey versions looking like:

```
Failures
  - python (exited 1) - python not installed. An error occurred during installation:
  Unable to resolve dependency 'python3 (= 3.8.5)'.
```
  • Loading branch information
dliappis authored Mar 26, 2024
1 parent a1c292d commit f87a592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/scripts/install-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ curl --version >nul 2>&1 && (
REM Set the USERPROFILE to the previous location to fix issues with chocolatey in windows 2019
SET PREVIOUS_USERPROFILE=%USERPROFILE%
SET USERPROFILE=%OLD_USERPROFILE%

echo "Upgrade chocolatey to latest version"
choco upgrade chocolatey -y

IF NOT EXIST C:\Python38\python.exe (
REM Install python 3.8
choco install python -y -r --no-progress --version 3.8.5 || exit /b 1
Expand Down

0 comments on commit f87a592

Please sign in to comment.