From 007c2dfb0f64b391dcb41398ce9f2beee15f5665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Ku=C5=9B?= Date: Mon, 24 Mar 2025 19:52:10 +0100 Subject: [PATCH] git pull in dir --- deploy-this/update-from-git.jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); }