Subversion Repositories DevTools

Rev

Rev 4665 | Go to most recent revision | 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=2a0ee4a4a09841f078aeb59f21a9dc69349e756c
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