Skip to content

Commit

Permalink
Remove strict host key checking in the ssh connection
Browse files Browse the repository at this point in the history
- In the ssh connection for abandoning bulk open commits, strict host key checking is being done and causing Host key verification failure.
  • Loading branch information
iathmika committed Apr 21, 2022
1 parent 2bbba67 commit df9aaa4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/docker-execute
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,10 @@ echo "UID: $(id -u)"
echo "GID: $(id -g)"
whoami;
eval $(ssh-agent -s);
ssh-add /home/dependabot/dependabot-core/id_rsa;
ssh-add /home/dependabot/.ssh/$(echo $(cat /home/dependabot/.ssh/config | grep IdentityFile) | cut -d " " -f 2 | cut -d "/" -f 3);
for c in $(ssh -p 29418 -o "StrictHostKeyChecking no" jenkins@gerrit.helpshift.com gerrit query --current-patch-set project:${REPO_NAME} branch:feature/dependabot | grep revision | tr -s " " | cut -d " " -f 3); \
do ssh -p 29418 jenkins@gerrit.helpshift.com gerrit review $c --abandon; \
do ssh -p 29418 -o "StrictHostKeyChecking no" jenkins@gerrit.helpshift.com gerrit review $c --abandon; \
done;
bin/dry-run.rb --provider gerrit $PACKAGE_NAME $REPO_NAME'
Expand Down

0 comments on commit df9aaa4

Please sign in to comment.