0

My Situation:
I'm configuring a gitlab CI Runner, which starts a powershell script.
In that Powershell script, I am using the command Compress-Archive and, since the archive I'm compressing has many files, the execution can take upwards of 5 minutes.

My Question:
During the execution of the command, is it possible to print a progress message to the console?
I know that when executing the Compress-Archive Command in powershell, you will see a "Progress" Bar appear:
Powershell Progress Bar

Can I somehow show this bar, or at least it's progress in the CI Runner?

I don't think it will help much, but here is my current code
CI Runner Script

build:
  stage: build
  script:
    - "./archive-files.ps1"

Powershell Script

Write-Host -NoNewLine "Zipping archive to: `"C:\dummytargetpath"`""
Compress-Archive -Path "C:\dummyoriginpath" -DestinationPath "C:\dummytargetpath" -CompressionLevel "Fastest" -Update

(note: the paths are changed, from what I actually use)

0 Answers0