cpkg: ignore known hosts in git operations

This commit is contained in:
wpetit 2021-09-14 15:23:16 +02:00
parent 62615af5e6
commit 15adc72606
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def withSSHCredentials(String credentialsId, Closure fn) {
keyFileVariable: 'GIT_SSH_IDENTITY_FILE',
)
]) {
withEnv(['GIT_SSH_VARIANT=ssh', 'GIT_SSH_COMMAND=ssh -i $GIT_SSH_IDENTITY_FILE -o IdentitiesOnly=yes -o StrictHostKeyChecking=no']) {
withEnv(['GIT_SSH_VARIANT=ssh', 'GIT_SSH_COMMAND=ssh -i $GIT_SSH_IDENTITY_FILE -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null']) {
fn.call()
}
}