cpkg: add git username/email to allow push

This commit is contained in:
wpetit 2020-03-24 10:15:56 +01:00
parent 22047c685a
commit 2f0f2c43ab
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ def call(Map params = [:]) {
sh("git merge ${currentRef}")
if (!skipPush) {
sh("git config user.email '${gitEmail}'")
sh("git config user.username '${gitUsername}'")
sh("git push")
} else {
println("Skipping push. Set skipPush param to 'true' to enable remote repository update.")