Gerrit Administrator Quick way to create a project __gerrit

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.