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