Reset project before pull

This commit is contained in:
Artur 2024-12-27 17:34:02 +01:00
parent 9d03571162
commit ccab7bc768
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ def git_take( projects ){
for( project in projects ){
def git_take ="git -c http.sslVerify=false "
if( fileExists( project ) ){
git_reset = git_take +" reset --hard "
sh( git_reset )
git_take = git_take +"-C "+project+" pull"
}else{
git_take = git_take +"clone "+ "https://artikus.dynu.net:7990/r/"+project+".git"

0
jenkins/start-jenkins.sh Normal file → Executable file
View File