0

When using gitlab-ci with windows, I tried installing choco. I ran refreshenv after choco, it skips the commands after refreshenv and exits the job declaring that the job was a success.

my .gitlab-ci.yml

before-script:
- >
  @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
- refreshenv
- choco install jdk8
- refreshenv
Vasantha Ganesh
  • 4,570
  • 3
  • 25
  • 33

0 Answers0