Simple API to get list of repos and list of branches for each repo

Dominik Ruf dominikruf at gmail.com
Thu Apr 5 05:40:00 UTC 2018


On Wed, Apr 4, 2018, 17:49 Long Vu <long.vu at intelerad.com> wrote:

> Hi,
>
> With hgweb, it's extremely simple.
>
> Getting the list of all the repos is
> https://www.mercurial-scm.org/repo?style=json
>
> Getting all the branches for 1 repo is
> https://www.mercurial-scm.org/repo/hg/branches?style=json
>
> Is there something similar with Kallithea?
>
Yes, the API allows this kind of thing.

>
> Use case: using Jenkins JobDSL plugin to automatically create jobs for
> all repos and all branches in each repo, basically emulating the
> Organization Folder support for Github and Bitbucket in Jenkins, but
> for Kallithea and hgweb.
>
I already wrote a Jenkins plugin for this. And I mentioned this on this
list before and I'm pretty sure I mentioned it to you as well :-/

https://kallithea.dominikruf.com/kallithea/kallithea-branch-source-plugin

>
>
> --
> Long Vu | Software Developer, Tools & Infrastructure | Intelerad |
> +1-514-931-6222 ext. 7743
>
> --
>
>
> This email or any attachments may contain confidential or legally
> privileged information intended for the sole use of the addressees. Any
> use, redistribution, disclosure, or reproduction of this information,
> except as intended, is prohibited. If you received this email in error,
> please notify the sender and remove all copies of the message, including
> any attachments.
>
>
> _______________________________________________
> kallithea-general mailing list
> kallithea-general at sfconservancy.org
> https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20180405/127cfca5/attachment.html>


More information about the kallithea-general mailing list