对文件夹下的git项目进行批量更新、打包
@echo off
set cdir=%~dp0
echo %cdir%
for /f "delims=" %%i in ('dir /ad/b/s "%cdir%" ') do (
if "%%~nxi" equ ".git" (
cd %%~dpi
mvn clean install -DskipTests
:: git pull
)
)
pause
@echo off
set cdir=%~dp0
echo %cdir%
for /f "delims=" %%i in ('dir /ad/b/s "%cdir%" ') do (
if "%%~nxi" equ ".git" (
cd %%~dpi
mvn clean install -DskipTests
:: git pull
)
)
pause