Following this guide I'm attempting to setup our git repos with a commit hook, but I'm still stuck at trying to get FishEye to initiate a scan from a script. Looks like curl is returning the login page for FishEye:
$ ./fecruapi.sh
Triggering FishEye scan
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Log in to FishEye and Crucible 2.10.0</title>
...
Going to the scan URL in a browser shows:
The command I am using (api key changed), from a laptop on the same network as the fisheye server:
/usr/bin/curl -X POST -H "X-Api-Key: 98d9dhdlkdldkldld899djdjkddadas" -m 20 http://fisheye.server.lan:8060/CONTEXT/rest-service-fecru/admin/repositories-v1/test/scan
In this case the name of the git repo, as displayed by FishEye in the Repositories admin section, is 'test'. I have also tried the above command with http://localhost:8060/... from the FishEye server itself, also returns the login page.
Am I missing something? Do I need to enable Global Anonymous Access or another option?
Community moderators have prevented the ability to post new answers.
What is the URL that you normally use to browse your FishEye?
Is it http://fisheye.server.lan:8060/CONTEXT or http://fisheye.server.lan:8060 ?
If it is the latter, then use cURL with the URL http://fisheye.server.lan:8060/rest-service-fecru/admin/repositories-v1/test/scan, so leaving out the "CONTEXT" part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.