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 knowncurl: (6) Could not resolve host: url:svn+ssh; nodename nor servname provided, or not knowncurl: (6) Could not resolve host: path; nodename nor servname provided, or not knowncurl: (6) Could not resolve host: username; nodename nor servname provided, or not knownHTTP/1.1 500 Server ErrorDate: Wed, 12 Mar 2014 21:54:51 GMTServer: Jetty(8.1.10.v20130312)Expires: Thu, 01 Jan 1970 00:00:00 GMTX-AUSERNAME: releaseCache-Control: privateX-Content-Type-Options: nosniffContent-Type: application/xmlContent-Length: 17011Set-Cookie: remember=;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;HttpOnlySet-Cookie: crucibleprefs1="D%3D1394661291852";Path=/;Expires=Thu, 12-Mar-2015 21:54:51 GMTSet-Cookie: FESESSIONID=1g4z7zanoam2m1jwvzze3c3n6i;Path=/;HttpOnlyConnection: close
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
ah yes. Post did the trick.
It looks like you're new here. Sign in or register to get started.