From 2f0f2c43ab5b24959a108e21e502fd2001006499 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 24 Mar 2020 10:15:56 +0100 Subject: [PATCH] cpkg: add git username/email to allow push --- vars/cpkg.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vars/cpkg.groovy b/vars/cpkg.groovy index 5469715..1ae5e7d 100644 --- a/vars/cpkg.groovy +++ b/vars/cpkg.groovy @@ -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.")