I am trying to run 2 tasks inside my config.yml the “installation” step works but when it continues to the second i get the following error:
mkdir `Blaat/wp-content/themes/blaat-theme' [Connecting...]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 29]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 28]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 27]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 26]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 25]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 24]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 23]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 22]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 21]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 20]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 19]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 18]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 17]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 16]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 15]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 14]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 13]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 12]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 11]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 10]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 9]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 8]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 7]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 6]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 5]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 4]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 3]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 2]
cd `Blaat/wp-content/themes/blaat-theme' [Delaying before reconnect: 1]
cd `Blaat/wp-content/themes/blaat-theme' []
mirror: Fatal error: Host key verification failed.
1 error detected
Exited with code 1
my config.yml:
version: 2.0
jobs:
"install":
docker:
- image: circleci/node:10.16
working_directory: ~/nm-workflows
steps:
- checkout
- run:
name: Install packages
command: yarn install
- run:
name: Build packages
command: yarn test-build
"upload":
docker:
- image: circleci/node:10.16
working_directory: ~/nm-workflows
steps:
- run:
name: Install LFTP
command: |
sudo apt-get update;
sudo apt-get install lftp;
- checkout
- run:
name: uploading files using SFTP
command: lftp sftp://${username}:${password}@${hostname} -e "mirror -v -R --exclude src/ --exclude webpack/ --exclude .babelrc --exclude .browserslistrc --exclude .eslintrc --exclude .gitignore --exclude .prettierrc --exclude .stylelintignore --exclude .stylelintrc --exclude bitbucket-pipelines.yml --exclude env.json --exclude yarn.lock --exclude .git/ --exclude .circleci/ ./ ${site_name}/wp-content/themes/${theme}; quit"
workflows:
version: 2
build:
jobs:
- "install"
- "upload"
How can i upload files using SFTP? What am i doing wrong?