From 3e4d84f706b234819209e1446458d7a610b46733 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Tue, 24 Sep 2019 13:42:58 +0200 Subject: [PATCH] Fix Host key verification failure for prometheus test --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9b21e3ee..686274e80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -126,8 +126,10 @@ prometheus-alerts: OAS_DOMAIN: 'ci-${CI_PIPELINE_ID}.ci.openappstack.net' allow_failure: true script: + - mkdir ~/.ssh - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - echo -e 'Host *\n stricthostkeychecking no' > ~/.ssh/config - cd test/ - pytest -s -m 'prometheus' --connection=ansible --ansible-inventory=../clusters/${HOSTNAME}/inventory.yml --hosts='ansible://*' only: -- GitLab