You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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.
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.