Coder Social home page Coder Social logo

isabella232 / gitlab-ci-gerrit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mobimentum/gitlab-ci-gerrit

0.0 0.0 0.0 25 KB

Templates for building software using GitLab CI + scripts to get Verified+1 in Gerrit

License: Apache License 2.0

PHP 100.00%

gitlab-ci-gerrit's Introduction

GitLab CI <-> Gerrit

This repository contains a set of scripts, configurations and templates for integrating Gerrit with GitLab CI.

Detailed tutorial here.

CI templates

The gitlab-ci/build-templates folder contains gitlab-ci files that can be used to build software developed with various technologies:

  • android-gradle.yml: Android apps compiled with Gradle.

How to use them

Pick the template you need, copy it to the root of the project and rename it to .gitlab-ci.yml. Finally, customize it reading the instructions contained in the template itself (look for XXX markers).

Gerrit hooks for GitLab

Gerrit hooks are used to react to Gerrit events and communicate with GitLab to achieve a full CI workflow:

  • patchset-created: sends new patchsets to GitLab and waits for the "verified" response
  • comment-added: typing "recheck" as comment will trigger a new build

How to use them

First of all, copy the gitlab.config.example to you Gerrit's "etc" directory, rename it to gitlab.config and customize it. Then, copy all the files to the hooks directory (create it if not already there) and restart your Gerrit installation.

System requirements:

  • php-cli
  • php-curl

Needed Gerrit plugins:

Additional Gerrit configuration (etc/replication.config):

# GitLab cannot read refs/for/*, we must push patchsets as branches
[remote "gitlab"]
	url = [email protected]:groupname/${name}.git 
	push = +refs/heads/*:refs/heads/*
	push = +refs/tags/*:refs/tags/*
	push = +refs/changes/*:refs/heads/review/*
	replicationDelay = 0
	createMissingRepositories = true

(customize gitlab.example.com and groupname with a group name your gerrit user has access to).

gitlab-ci-gerrit's People

Contributors

krinkle avatar mauriziopinotti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.