jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

Improve Download Speed by Enabling SilentContinue in GitLab CI Template for JFROG CLI Setup on Windows

Open ronman194 opened this issue 7 months ago • 1 comments

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.

ronman194 avatar May 20 '25 12:05 ronman194

You can send a PR for this change

RemiBou avatar Oct 17 '25 13:10 RemiBou