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://cdstestpcc:8060
set KEY=097bfb6b5b9fdee2e8250be71b3d2786b6dbeed6
set CURL="c:\Program Files\cURL\bin\curl.exe"
set ARGS=-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