Hi
curl \ -u admin:admin \ -X POST \ --data "displayName=test2&root=/home/andrey/work/dmd/test-repo&enableFetches=true&origin=git@github.com:AndreyLevchenko/test-repo.git&revisionIndexing=true&revisionCacheSize=10000" \ "http://localhost:2990/jira/secure/AddGitRepository.jspa"
Jim - we're looking at a UI for this functionality. If we decide to proceed with development, I will update here with progress. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That worked for me, thanks! I wrapped it in a little quickie script using my local gitolite server as origin (sanitized):
#!/bin/sh #Given a directory full of directories full of repos, fx ./frontend_repos/{repo1,repo2,repo3} and ./backend_repos/{repoA,repoB,repoC} for dir in frontend_repos backend_repos do cd $dir ls -C1| while read i do echo "$dir -- $i" curl -u admin:password -X POST --data "displayName=$i&root=/home/jira/git/$dir/$i&enableFetches=true&origin=gitolite@my.domain.net:$dir/$i.git&revisionIndexing=true&revisionCacheSize=10000" http://localhost:8080/jira/secure/AddGitRepository.jspa done cd .. done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Updating this old conversation as we have added a number of APIs and functionality for admins to add large numbers of repositories: https://bigbrassband.com/api-doc.html
Any questions can be directed to support@bigbrassband.com.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's great we have a workaround, but is there any chance this can become part of the product? I don't mind getting my hands dirty but it would be much cleaner to do it through the admin UI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andrey and Eric, you saved me a lots of work! Script works like a charm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ask people who are developing that plugin ? There is a link to Support and Issues which might help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.