$ echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - Identity added: (stdin) (gitlab@cptr245) $ mkdir -p ~/.ssh $ chmod 700 ~/.ssh $ # establish connection to server machine and copy files # collapsed multi-line command Warning: Identity file -----BEGIN not accessible: No such file or directory. ssh: Could not resolve hostname openssh: Name or service not known Cleaning up file based variables ERROR: Job failed: exit code 1