From c5fd1bb2a2e9d25ce13cb0a1f68b1131bf436dcb Mon Sep 17 00:00:00 2001 From: Artur Date: Sun, 6 Oct 2024 18:14:36 +0200 Subject: [PATCH] Removing second _programs_ --- deploy-this/update-from-git.jenkinsfile | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/deploy-this/update-from-git.jenkinsfile b/deploy-this/update-from-git.jenkinsfile index c14a96c..1a23ac5 100644 --- a/deploy-this/update-from-git.jenkinsfile +++ b/deploy-this/update-from-git.jenkinsfile @@ -11,20 +11,16 @@ def git_take( projects ){ sh( git_pull ) sh("git log -n 1") }else{ - dir("_programs_"){ - for( project in projects ){ - def git_take ="git -c http.sslVerify=false " - if( fileExists( project ) ){ - git_take = git_take +"-C "+project+" pull" - }else{ - git_take = git_take +"clone "+ "https://artikus.dynu.net:7990/r/"+project+".git" - } - sh( git_take ) - sh("git log -n 1") - } - } - - + for( project in projects ){ + def git_take ="git -c http.sslVerify=false " + if( fileExists( project ) ){ + git_take = git_take +"-C "+project+" pull" + }else{ + git_take = git_take +"clone "+ "https://artikus.dynu.net:7990/r/"+project+".git" + } + sh( git_take ) + sh("git log -n 1") + } } }