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)'.
```

(cherry picked from commit f87a592)
  • Loading branch information
dliappis authored and mergify[bot] committed Mar 26, 2024
1 parent 9e00900 commit 95a1f3f
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 @@ -13,6 +13,10 @@ IF ERRORLEVEL 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 95a1f3f

Please sign in to comment.