go to gitea
This commit is contained in:
parent
388bc6aa4f
commit
999fdbd5d3
|
|
@ -1,21 +1,17 @@
|
|||
def projects = [
|
||||
"proxy-nginx",
|
||||
"arti-angular-app",
|
||||
"angular-services",
|
||||
"chat-gpt",
|
||||
"zaklik-by-spring-boot",
|
||||
"zaklik-by-node-js"
|
||||
]
|
||||
|
||||
def git_take( projects ){
|
||||
|
||||
if( 0 == projects.size() ){
|
||||
def git_pull ="git -c http.sslVerify=false pull"
|
||||
def git_pull ="git pull"
|
||||
sh( git_pull )
|
||||
sh("git log -n 1")
|
||||
}else{
|
||||
for( project in projects ){
|
||||
def git_take ="git -c http.sslVerify=false "
|
||||
def git_take ="git "
|
||||
if( fileExists( project ) ){
|
||||
dir( project ){
|
||||
git_reset = git_take +" reset --hard "
|
||||
|
|
@ -23,7 +19,7 @@ def git_take( projects ){
|
|||
}
|
||||
git_take = git_take +"-C "+project+" pull"
|
||||
}else{
|
||||
git_take = git_take +"clone "+ "https://artikus.dynu.net:7990/r/"+project+".git"
|
||||
git_take = git_take +"clone "+ "https://git.arti24.eu/gitea"+project+".git"
|
||||
}
|
||||
sh( git_take )
|
||||
dir( project ){
|
||||
|
|
|
|||
Loading…
Reference in New Issue