Subversion Repositories DevTools

Rev

Rev 5286 | Blame | Compare with Previous | Last modification | View Log | RSS feed

REM Maintained in package SubversionServerSupport
REM
REM     Trigger a Fisheye scan of this Repo
REM     Hit a know Rest API with magic
REM
REM     Args
REM             %1 - Path to Repo
REM             %2 - Rev created by the commit
REM
set repoName=%~nx1
set URL=http://fecru:8060
set KEY=6a4d8efe1601eec0f2ae857515e135605bde84ff
set CURL="c:\Program Files\cURL\bin\curl.exe"
set ARGS=--max-time 7 -X POST -H "X-Api-Key: %KEY%" %URL%/rest-service-fecru/admin/repositories-v1/%repoName%/scan

REM echo %1 : %2 : %repoName% : %ARGS% >> C:\Windows\Temp\ddp.log
REM echo %1 : %2 : %repoName% : %ARGS%  >&2

%CURL% %ARGS%
if %errorlevel%==0 (goto Done)
        echo Error triggering Fisheye/Crucible >&2
        exit 1
:Done

exit 0