git pull in dir
This commit is contained in:
parent
d7656b2570
commit
007c2dfb0f
|
|
@ -16,12 +16,12 @@ def git_take( projects ){
|
||||||
dir( project ){
|
dir( project ){
|
||||||
git_reset = git_take +" reset --hard "
|
git_reset = git_take +" reset --hard "
|
||||||
sh( git_reset )
|
sh( git_reset )
|
||||||
}
|
git_take = git_take +"pull"
|
||||||
git_take = git_take +"pull"
|
sh( git_take )
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git"
|
git_take = git_take +"clone "+ "https://git.arti24.eu/gitea/"+project+".git"
|
||||||
}
|
}
|
||||||
sh( git_take )
|
|
||||||
dir( project ){
|
dir( project ){
|
||||||
sh( "git log -n 1");
|
sh( "git log -n 1");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue