Improve Download Speed by Enabling SilentContinue in GitLab CI Template for JFROG CLI Setup on Windows
Is your feature request related to a problem? Please describe. In the setup scripts of the gitlab ci template for windows the Invoke-Webrequest cmdlet is used to download the JFROG CLI. This happens on line 38: iwr $BASE_URL/jfrog-cli/v2- jf/$env:JFROG_CLI_VERSION/jfrog-cli-windows-amd64/jf.exe -OutFile $JFROG_BIN\jf.exe -Headers $AUTH_HEADER The issue is the invoke-webrequest cmdlet is very slow when downloading data if "SilentContinue" is not enabled. r
** Since SilentContinue is not set in the current version of the template, the webrequest takes 3 minutes and 58 seconds to complete to download the JFROG CLI.
Describe the solution you'd like to see Simply enabling SilenContinue by add the following line:
- $ProgressPreference = "SilentlyContinue" between line 37 and 38. The request is executed a lot faster
**If SilentContinue is set (it is an environment variable so you can simply set in anywhere in your pipeline before you run the setup_jfrog script), then the webrequest to download the JFROG CLI only takes 2 second to complete.
You can send a PR for this change