Giter Club home page Giter Club logo

crabserver's Introduction

CRAB CI/CD flow with Jenkins

1. Building RPMs
  • Each release created in CRABServer repository triggers Jenkins job that builds RPMs for crabserver and crabtaskworker.
  • In master branch agreed naming convention for tagging new releases should follow this logic: v3.YYMMDD. Note: dash is not allowed in branch or tag name as RPM build will fail.
  • Built RPMs are stored in comp.crab_[branch] repository every time overwriting old RPMs files. [branch] stands for the branch name which was used to create new release, e.g. comp.crab_master.
2. Building Docker images
  • If RPMs build job was successful, Jenkins job that builds Docker images is triggered.
  • Built images are stored in cmssw/[crabserver|crabtaskworker] Docker Hub repository while crabserver is also stored in CERN Registry.
  • After build is done, email notification is sent confirming that overall build process is done with indication whether build failed or succeeded. Log file is attached to the email for investigation.
3. Deploying crabserver
  • crabserver can be deployed to given environment by entering needed parameters in this Jenkins job.
  • Two parameters should be provided before starting the build job: CRABServer_image and REST_Instance.
  • CRABServer_image requires to enter image tag that should be deployed.
  • REST_Instance requires to enter k8s host name where provided tag should be deployed. Default value points to cmsweb-test2.cern.ch.
  • After deployment of crabserver is done, email notification is sent confirming that deployment process is done with indication whether it failed or succeeded. Log file is attached to the email for investigation.
4. Deploying TaskWorker/Publisher
  • TaskWorker/Publisher can be deployed to given environment by entering needed parameters in this Jenkins job.
  • Three parameters should be provided before starting the build job: Service, Image and Environment.
  • Service requires to select which service should be deployed: TaskWorker or Publisher.
  • Image requires to enter image tag that should be deployed.
  • Environment requires to enter host name where provided tag should be deployed. Default value points to crab-dev-tw01.
  • After deployment of TaskWorker/Publisher is done, email notification is sent confirming that deployment process is done with indication whether it failed or succeeded. Log file is attached to the email for investigation.
5. Running testing with Jenkins
  • One can start running testing suits in this Jenkins job.
  • 3 kinds of testings can be started: Client_Validation_Suite, Task_Submission_Status_Tracking and Client_Configuration_Validation.
  • Different kinds of testings and needed to provide parameters are explained in Jenkins jobs description.

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.