Posted on 2018-02-23 18:12
魔のkyo 阅读(690)
评论(0) 编辑 收藏 引用
post-commit.bat
setlocal enabledelayedexpansion
SET REPOS=%1
SET REV=%2
set servChanged=0
set viewChanged=0
for /f "delims=" %%i in ('svnlook changed -r %REV% %REPOS%') do (
set "l=%%i"
if "!l:~0,14!"=="U trunk/serv" set servChanged=1
if "!l:~0,14!"=="U trunk/view" set viewChanged=1
)
if %servChanged%==1 curl -X POST http://localhost:8080/job/ims_server/build?delay=60sec --user user:******36fc7150881759900c28c236cf --data-urlencode json=
if %viewChanged%==1 curl -X POST http://localhost:8080/job/ims_view/build?delay=60sec --user user:******36fc7150881759900c28c236cf --data-urlencode json=