Update from git

This commit is contained in:
Artur 2024-10-06 17:02:19 +02:00
parent 9088ec44d1
commit b282d8647f
1 changed files with 15 additions and 13 deletions

View File

@ -11,20 +11,22 @@ def git_take( projects ){
sh( git_pull )
sh("git log -n 1")
}else{
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 )
dir( "./" + project ){
sh("git log -n 1")
}
dir(".."){
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 )
dir( "./" + project ){
sh("git log -n 1")
}
}
}
}
}
}