Background
Gerrit administrators are generally the technical department of the students responsible for speeding up the pace of Gerrit, I promised to become one of the administrators.
Administrators to the programmer, a lot of manual work can become automated, I designed a program that can quickly create Gerrit Project design
Code open to Gitlab
Https://github.com/yyw794/GerritCreateProjects
Because Gerrit supports fully functional restful operations, select the Pygerrit2 library to automate it.
The automated operation accomplishes two main things:
1. Create project;
2. Set up the group configuration of the project, what project to create, the project and what Group Association, through the projects_info.txt file Description (group only need write prefix, will automatically expand.) For example, Power-test will automatically expand the program to Power-test-admin, Power-test-core, Power-test-team) project and group How to configure, through project_ Config.template Rules File description
Code is very simple, welcome to read the code to understand the details of the use
Currently, only tested in a Linux environment.
Due to the use of HTTP password login, so you need to obtain their own HTTP password (click on their own account settings,http password copy the password, if not, Generate password can)
Please refer to the project's Readme