cpkg: loose ssh host key checking

This commit is contained in:
wpetit 2021-09-09 15:29:16 +02:00
parent 2222c30054
commit c5684aafea

View File

@ -27,7 +27,7 @@ def call(Map params = [:]) {
sh("git config --add remote.origin.fetch +refs/heads/${distBranch}:refs/remotes/origin/${distBranch}")
// Update branches
sh("git fetch --all")
sh("GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git fetch --all")
// Merge currentRef into distBranch and push
sh("git checkout -b '${distBranch}' 'origin/${distBranch}'")
@ -39,7 +39,7 @@ def call(Map params = [:]) {
sh("git merge ${currentRef}")
if (!skipPush) {
sh("git push")
sh("GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push")
} else {
println("Skipping push. Set skipPush param to 'true' to enable remote repository update.")
}
@ -79,7 +79,7 @@ def call(Map params = [:]) {
// Push tag
if (!skipPush) {
sh("git push --tags")
sh("GIT_SSH_COMMAND='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push --tags")
} else {
println("Skipping push. Set skipPush param to 'true' to enable remote repository update.")
}