diff --git a/helpers.groovy b/helpers.groovy index 291d0de..c28c0f1 100644 --- a/helpers.groovy +++ b/helpers.groovy @@ -44,8 +44,9 @@ def withGiteaCreds(String credentialsId, String gitToolName, Closure body) { gitToolName: gitToolName ) ]) { - sh "git config user.name ${env.GIT_USERNAME}" - sh "git config user.email admin@dipal.ru" + errorMessage = "Unable to set git config" + sh "git config user.name ${env.GIT_USERNAME} || echo $errorMessage" + sh "git config user.email admin@dipal.ru || echo $errorMessage" body() } }