From 36888b453dcf06657a6a768e57c9c67d31bccb82 Mon Sep 17 00:00:00 2001 From: Jazze7 Date: Wed, 6 Nov 2024 10:52:35 +0530 Subject: [PATCH] modification v2 jenkins --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') {