Code Monkey home page Code Monkey logo

cd-tools's Introduction

cd-tools

cd tools!

are the bestest - seriously


gerrit

OK - the recipe will get you set up, but there are manual steps. You need to log in to the review system, and register the first user.

Add an ssh key, select a username.

Add the gerrit user

cat /var/lib/jenkins/.ssh/id_rsa.pub | ssh -p29418 [email protected] gerrit create-account --email '[email protected]' --ssh-key - --full-name Jenkins jenkins

Add the Jenkins suer to the Non-Interactive Users group

Manipulate the default permissions.

Admin->Project->All-Projects->Access

refs/* + Read -> Non-Interactive Users + Push -> Administrators -> Force Push Checked + Create References -> Administrators refs/heads/* + Push -> Administrators -> Force Push Checked + Label Verified -> Non-Interactive Users (-1/+1) + Label Code Reviewed -> Non-Interactive Users (-1/+1) + Submit -> Registered Users

Configure gerrit for ssh to github

Make sure you add the ssh host key for [email protected] to gerrit's ssh known hosts, and have restarted gerrit

Configure replication

[remote "github"] url = [email protected]:adamhjk/#{name} push = +refs/heads/:refs/heads/ push = +refs/tags/:refs/tags/

Creating a repository

Admin->Projects->Create New Project Name: SHould match the upstream github repo Rights Inherit From: All-Projects

In the project itself

Merge if neccessary Automatically resolve conflicts Require Change ID (If it's open source, add the signed-off-by)

Configure Jenkins

Manage Jenkins->Gerrit Trigger

Hostname: review.local Frontend URL: http://review.local SSH Port: 29418 Username: jenkins

Test Flow for Cookbooks

  • Check Jobs
    • Merge
    • Syntax
    • Foodcritic
  • Gate Tests
    • Syntax
    • Foodcritic
    • Chef Server Dev Environment Update
  • Promotion
    • Dev->Integration
    • Dev->Staging
    • Staging->Production
    • Production->A
    • A->B

Create the first check job

Gate Tests

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.