Git Product home page Git Product logo

gerrit-jenkins-gen's Introduction

gerrit-jenkins-gen

This project is intended to be triggered by Jenkins Gerrit Trigger Plugin. It generates Jenkins Job DSL output in response to gerrit events.

The idea is to trigger this on the "Patch Set Created" event for all projects in Gerrit. It will generate Jenkins jobs according to the target project's configuration:

  • If a jenkins.json file is defined, it is interpreted (see below).
  • If a Dockerfile is found, a simple "does the Dockerfile work?" job is created.

Currently there's a bias towards NodeJS projects that are deployed via Docker.

Jenkins.json

{
  "node": [
    "4.1",
    "4.2",
    "4.3",
    "4.4"
  ],
  "docker": {},
  "flotilla": {
    "pipeline": [
      "!develop",
      "staging"
    ],
    "defaults": {
      "REGIONS": ["us-east-1"],
      "DOCKER_PORT_80": 8080,
      "INSTANCE_TYPE": "t2.nano",
      "INSTANCE_MIN": "1",
      "INSTANCE_MAX": "2",
      "HEALTH_CHECK": "HTTP:80/"
    },
    "develop": {
      "MESSAGE": "hello develop 1054"
    },
    "staging": {
      "MESSAGE": "hello staging",
      "INSTANCE_MIN": "2"
    }
  }
}

The node block defines versions of NodeJS that should be used for testing.

The docker block designates the project is released via Docker.

The flotilla block defines a pipeline of flotilla environments for deployment.

Disclaimer

This is not used by Pebble, it's a 20% project hacked together over 2 days.

gerrit-jenkins-gen's People

Contributors

thepwagner avatar

Watchers

James Cloos 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.