Fixing ssh strict host check
Change-Id: I0a10237b155f604b814ec676435170898cb50acd
diff --git a/Jenkinsfile b/Jenkinsfile
index b63ba34..03447cf 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -268,7 +268,7 @@
* @return the output of the command
*/
def runCmd(ip, user, pass, command) {
- return sh(returnStdout: true, script: "sshpass -p ${pass} ssh -oStrictHostKeyChecking=no -l ${user} ${ip} ${command}")
+ return sh(returnStdout: true, script: "sshpass -p ${pass} ssh -o UserKnownHostsFile=/dev/null -l ${user} ${ip} ${command}")
}
/**
@@ -287,5 +287,5 @@
return runCmd("${haedIp}",
"${headUser}",
"${headPass}",
- "sshpass -p ${pass} ssh -oStrictHostKeyChecking=no -l ${user} ${ip} ${command}")
+ "sshpass -p ${pass} ssh -o UserKnownHostsFile=/dev/null -l ${user} ${ip} ${command}")
}
\ No newline at end of file