has anybody successfully created repositories from commandline in fisheye?
I followed the rest api doc using the follorwing:
curl -D- -u xxxxx:yyyyy -X PUT --data {"type":"SUBVERSION","name":"SCM","url":"svn+ssh://mycompany.com","path":"SCM","username":"build"} -H "Content-Type: application/json" http://crucible.mspot.com/rest-service-fecru/admin/repositories-v1<br< a="">>
got the following error:
curl: (6) Could not resolve host: name; nodename nor servname provided, or not known
curl: (6) Could not resolve host: url:svn+ssh; nodename nor servname provided, or not known
curl: (6) Could not resolve host: path; nodename nor servname provided, or not known
curl: (6) Could not resolve host: username; nodename nor servname provided, or not known
HTTP/1.1 500 Server Error
Date: Wed, 12 Mar 2014 21:5...
It seems the json structure suggested in api doc might not be correct.
Hi Ming Ho,
As you can see in the output the errors comes from curl itself. The query doesn't reach FishEye.
* You need to put the content of data in single quotes
* As defined https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#d2e548you should use POST not PUT
Try this:
curl -u xxx:xxx -X POST --data '{"type":"SUBVERSION","name":"SCM","url":"svn+ssh://mycompany.com","path":"SCM","username":"build"}' -H "Content-Type: application/json" http://crucble.mspot.com/rest-service-fecru/admin/repositories-v1/
Hope this works.
Also expect a much more powerfull repository management REST API in FishEye 3.4.
Mac
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.