How do I create a project group on gerrit to manage multiple projects?

187 views
Skip to first unread message

刘ys

unread,
Sep 20, 2023, 4:38:14 AM9/20/23
to Repo and Gerrit Discussion
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?
Dingtalk_20230920163006.jpg
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?

As shown by gitlab in the figure, create a group and then add  projects to the group. But I didn't find a similar feature in gerrit? Does gerrit support such a feature, and if so, how to create and add groups?

Thank you in advance for taking the time to read my post and offering your assistance. I truly appreciate the expertise and support of this community.

Sven Selberg

unread,
Sep 20, 2023, 5:07:56 AM9/20/23
to Repo and Gerrit Discussion
On Wednesday, September 20, 2023 at 10:38:14 AM UTC+2 刘ys wrote:
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?
Dingtalk_20230920163006.jpg
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?

The project-group concept doesn't exist in Gerrit but similar functionality is provided by user-groups and project inheritance.
If you create a group you can use the same group to express access-rights in multiple projects.

If you have a set of projects that should be handled the same way you can create a parent meta-project and add access-rules to this project which are then inherited by all child projects.
This inheritance is similar to project groups but is not visualized in the same way as in GitLab.
There are no out-of-the-box connection between project inheritance and project path in Gerrit. Ensuring that the inheritance and project path match is something you would have to manage yourself through AM or perhaps one could write a plugin that facilitates that.

 

As shown by gitlab in the figure, create a group and then add  projects to the group. But I didn't find a similar feature in gerrit? Does gerrit support such a feature, and if so, how to create and add groups?

In Gerrit you would create a meta-project and a group, add ACLs for that group in the meta-project and create new projects that inherits from the meta-project.

Sven Selberg

unread,
Sep 20, 2023, 5:09:22 AM9/20/23
to Repo and Gerrit Discussion
On Wednesday, September 20, 2023 at 11:07:56 AM UTC+2 Sven Selberg wrote:
On Wednesday, September 20, 2023 at 10:38:14 AM UTC+2 刘ys wrote:
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?
Dingtalk_20230920163006.jpg
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?

The project-group concept doesn't exist in Gerrit but similar functionality is provided by user-groups and project inheritance.
If you create a group you can use the same group to express access-rights in multiple projects.

If you have a set of projects that should be handled the same way you can create a parent meta-project and add access-rules to this project which are then inherited by all child projects.

Matthias Sohn

unread,
Sep 20, 2023, 5:53:21 AM9/20/23
to Sven Selberg, Repo and Gerrit Discussion
On Wed, Sep 20, 2023 at 11:09 AM Sven Selberg <sven.s...@axis.com> wrote:


On Wednesday, September 20, 2023 at 11:07:56 AM UTC+2 Sven Selberg wrote:
On Wednesday, September 20, 2023 at 10:38:14 AM UTC+2 刘ys wrote:
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?
Dingtalk_20230920163006.jpg
How to create a project group on gerrit to manage multiple projects, similar to the project team feature of gitlab, which allows multiple projects to be managed in the same group?

The project-group concept doesn't exist in Gerrit but similar functionality is provided by user-groups and project inheritance.
If you create a group you can use the same group to express access-rights in multiple projects.

If you have a set of projects that should be handled the same way you can create a parent meta-project and add access-rules to this project which are then inherited by all child projects.


This inheritance is similar to project groups but is not visualized in the same way as in GitLab.
There are no out-of-the-box connection between project inheritance and project path in Gerrit. Ensuring that the inheritance and project path match is something you would have to manage yourself through AM or perhaps one could write a plugin that facilitates that.

maybe the project-group-structure plugin implements some of your requirements
 

 

As shown by gitlab in the figure, create a group and then add  projects to the group. But I didn't find a similar feature in gerrit? Does gerrit support such a feature, and if so, how to create and add groups?

In Gerrit you would create a meta-project and a group, add ACLs for that group in the meta-project and create new projects that inherits from the meta-project.
 

Thank you in advance for taking the time to read my post and offering your assistance. I truly appreciate the expertise and support of this community.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/7cd60a7d-6606-4b32-9baa-7fd4f0e2bd32n%40googlegroups.com.

刘ys

unread,
Sep 20, 2023, 6:10:04 AM9/20/23
to Repo and Gerrit Discussion
How do I manage a repo using gerrit? I have a list of repo's that involve a lot of git repositories. How do I incorporate repo's into gerrit management? Is there a plugin for that?
Reply all
Reply to author
Forward
0 new messages