git from gitea

This commit is contained in:
Artur Kuś 2025-03-24 19:49:25 +01:00
parent e6be09b47e
commit d7656b2570
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
def projects = [ def projects = [
"proxy-nginx", "arti24",
"arti24" "proxy-nginx"
] ]
def git_take( projects ){ def git_take( projects ){
@ -11,13 +11,13 @@ def git_take( projects ){
sh("git log -n 1") sh("git log -n 1")
}else{ }else{
for( project in projects ){ for( project in projects ){
def git_take ="git " def git_take ="git "
if( fileExists( project ) ){ if( fileExists( project ) ){
dir( project ){ dir( project ){
git_reset = git_take +" reset --hard " git_reset = git_take +" reset --hard "
sh( git_reset ) sh( git_reset )
} }
git_take = git_take +"pull"; git_take = git_take +"pull"
}else{ }else{
git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git" git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git"
} }