Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST API not triggering FishEye scan?

jmooo January 23, 2013

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?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
rverschoor
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2013

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.

jmooo January 24, 2013

There we go, our install doesn't have the CONTEXT part in the URL. Thanks Rene!

TAGS
AUG Leaders

Atlassian Community Events