git from gitea
This commit is contained in:
parent
e6be09b47e
commit
d7656b2570
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue