Hi, I'm trying to setup my pipeline to deploy our repo to Google Compute Engine but I'm facing a few issues.
First, I can SSH in but passing commands using SSH fails.
Second, SCP is failing with the error `No such file or directory`.
This is my pipeline:
- ssh -i ~/.ssh/config my-bitbucket-username@<IP> 'Gracefully shutdown'
- scp -r -i ~/.ssh/config ~/ my-bitbucket-username@<IP>:~/
- ssh -i ~/.ssh/config my-bitbucket-username@<IP> 'Do a bunch of stuff'
1. The first ssh command fails, but if I don't pass a command, it succeeds
2. The scp fails with ` No such file or directory`. I've even tried to pass the path that was output from the build setup, `Cloning into '/opt/atlassian/pipelines/agent/build'...`
What am I doing wrong here?