diff --git a/deploy-this/update-from-git.jenkinsfile b/deploy-this/update-from-git.jenkinsfile index e79d8e6..37eab31 100755 --- a/deploy-this/update-from-git.jenkinsfile +++ b/deploy-this/update-from-git.jenkinsfile @@ -16,12 +16,12 @@ def git_take( projects ){ dir( project ){ git_reset = git_take +" reset --hard " sh( git_reset ) - } - git_take = git_take +"pull" + git_take = git_take +"pull" + sh( git_take ) + } }else{ git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git" } - sh( git_take ) dir( project ){ sh( "git log -n 1"); }