diff --git a/vars/cpkg.groovy b/vars/cpkg.groovy index a1c8b8d..c2ea577 100644 --- a/vars/cpkg.groovy +++ b/vars/cpkg.groovy @@ -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.") }