I set up a simple pipeline to do some testing. Previously, it had been working fine. Now, when I try to run a pipeline script, it hangs on 'my_known_hosts' not existing. Known hosts have been fetched and added to the repo. I've even tried with fresh repositories, but still the same error. Here's what I have in my yml config file:
image: atlassian/default-image:1
pipelines:
default:
- step:
script:
- mkdir -p ~/.ssh
- cat my_known_hosts >> ~/.ssh/known_hosts
- (umask 077; echo $[MY_STORED_KEY] | base64 --decode > ~/.ssh/id_rsa)
- sftp [myuser]@[myhost]:[mydirectory] <<< $'put -r *'
Here is the error I receive:
<span>+ cat my_known_hosts >> ~/.ssh/known_hosts</span>
<span>cat: my_known_hosts: No such file or directory</span>