go to gitea
This commit is contained in:
parent
388bc6aa4f
commit
999fdbd5d3
|
|
@ -1,21 +1,17 @@
|
||||||
def projects = [
|
def projects = [
|
||||||
"proxy-nginx",
|
"proxy-nginx",
|
||||||
"arti-angular-app",
|
|
||||||
"angular-services",
|
|
||||||
"chat-gpt",
|
|
||||||
"zaklik-by-spring-boot",
|
|
||||||
"zaklik-by-node-js"
|
"zaklik-by-node-js"
|
||||||
]
|
]
|
||||||
|
|
||||||
def git_take( projects ){
|
def git_take( projects ){
|
||||||
|
|
||||||
if( 0 == projects.size() ){
|
if( 0 == projects.size() ){
|
||||||
def git_pull ="git -c http.sslVerify=false pull"
|
def git_pull ="git pull"
|
||||||
sh( git_pull )
|
sh( git_pull )
|
||||||
sh("git log -n 1")
|
sh("git log -n 1")
|
||||||
}else{
|
}else{
|
||||||
for( project in projects ){
|
for( project in projects ){
|
||||||
def git_take ="git -c http.sslVerify=false "
|
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 "
|
||||||
|
|
@ -23,7 +19,7 @@ def git_take( projects ){
|
||||||
}
|
}
|
||||||
git_take = git_take +"-C "+project+" pull"
|
git_take = git_take +"-C "+project+" pull"
|
||||||
}else{
|
}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 )
|
sh( git_take )
|
||||||
dir( project ){
|
dir( project ){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue