GithubHelp home page GithubHelp logo

rexredinger / rpc-gating Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rcbops/rpc-gating

0.0 1.0 0.0 5.18 MB

Unified Gating Repository

Shell 6.19% Python 43.29% Groovy 35.13% HTML 6.57% CSS 0.05% JavaScript 8.16% Dockerfile 0.61%

rpc-gating's Introduction

Welcome!

Repo Layout

  • rpc_jobs: JJB Job definitions
  • pipeline_steps: Groovy Functions for use in pipelines
  • playbooks: Ansible Playbooks
  • scripts: Bash and Python scripts

Git Hooks

Run githooks.sh to add the lint.sh script as a pre-commit hook. This will do a basic syntax check before each commit. Note that unavailable tools will be skipped so for this to be useful you need to have the following tools installed:

  • groovy (apt/groovy2)
  • jenkins-jobs (pip/jenkins-job-builder)
  • ansible-playbook (pip/ansible)

Conventions

Naming

Files

  • Use _ as the word delimiter
  • All lowercase
  • Examples:
    • jjb_setup.yml
    • pipeline_steps

Jobs

  • Use - as the word delimiter
  • Use _ between a job name and the job template variables
  • Use standard capitalization rules, template variables can be an exception to this
  • Examples:
    • RPC-AIO_{series}-{image}-{action}-{scenario}-{ztrigger}
    • RPC-AIO_master-xenial-deploy-swift-periodic
    • Merge-Trigger-JJB
    • {trigger}-Dep-Update_{repo_name}-{branch}

Required Properties

Retention Policy

Every Job must have a retention policy either based on days or number of builds.

Example job with number of builds retention policy:

  - job:
      properties:
        - build-discarder:
            num-to-keep: 30

Example job with number of days retention policy:

  - job:
      properties:
        - build-discarder:
            days-to-keep: 30

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.