cpkg: ignore known hosts in git operations
This commit is contained in:
parent
62615af5e6
commit
15adc72606
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue