Reset project before pull
This commit is contained in:
parent
9d03571162
commit
ccab7bc768
|
|
@ -17,6 +17,8 @@ def git_take( projects ){
|
||||||
for( project in projects ){
|
for( project in projects ){
|
||||||
def git_take ="git -c http.sslVerify=false "
|
def git_take ="git -c http.sslVerify=false "
|
||||||
if( fileExists( project ) ){
|
if( fileExists( project ) ){
|
||||||
|
git_reset = git_take +" reset --hard "
|
||||||
|
sh( git_reset )
|
||||||
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://artikus.dynu.net:7990/r/"+project+".git"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue