When attempting to debug an issue, it can be challenging to reproduce the problem on the machine used in the CI/CD process, especially if it is different from the local development environment. Because there is no direct access to the runner machine in cloudbuild, there is alternative way by applying the reverse-shell method that allows gaining access to the CI/CD environment.
Note: Establishing a reverse shell should only be done for the purpose of debugging and testing and not to be misused.
$ sudo apt-get install rlwrap # readline wrapper for nice tty