I have a fairly complex
.gitlab-ci.yml bash script, which is managing and updating several VMs. At times the script has to wait for the VMs to be ready, and so there’s a utility function that keeps testing a VM until it’s ready, and then exits.
Problem: since every command exited gets copied to the job log, this leads to LOTS of textual noise, and makes it impossible to see/find the useful part of the log. I’d love to temporarily disable the command logging for the duration of this waiting function; is there any way for me to do so? How exactly does Gitlab record each command that bash executes?