diff --git a/Jenkinsfile b/Jenkinsfile index f80ced7..909fcc3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,11 +16,12 @@ pipeline { script { sshagent(credentials: [SSH_CREDENTIALS]) { sh ''' + mkdir -p ~/.ssh ssh-keyscan -H 160.187.166.47 >> ~/.ssh/known_hosts ''' } } - } + } } stage('Checkout and Install Dependencies on Remote Server') {