Code Monkey home page Code Monkey logo

jenkins-pipeline-example's Introduction

Jenkins Pipeline Example

Goal

The purpose of this project is to demonstrate with a simple project how a software delivery pipeline can be assembled using Jenkins.

Some important steps can be seen in this project, such as unit testing, interface testing, static code analysis, and deploying Docker images.

A pipeline can contain more or less steps depending on your application scenario. The important thing is to understand the flow needed to deliver the application with confidence, and to automate this flow.

Use this project as a base for ideas for your own pipeline.

stages-ci

How to use

Having Docker installed, execute the commands below:

docker pull elgalu/selenium

docker-compose up -d

After that some services will be available:

App Products DSV - http://localhost:8081

Simple app in DSV stage

App Products HML - http://localhost:8085

Simple app in HML stage

App Products PRD - http://localhost:8090

Simple app in PRD stage

Jenkins - http://localhost:8080

Jenkins to run CI and CD jobs

Sonarqube - http://localhost:9000

Sonarqube is a tool that performs static code analysis and points out possible problems.

Zalenium - http://localhost:4444/grid/admin/live?refresh=10

Zalenium is a extension of Selenium Grid to execute Selenium tests in parallel

When accessing Jenkins there are two jobs already configured:

products-ci

  • Download the project from Github
  • Run unit-tests
  • Execute Sonarqube analysis
  • Build jar artifact
  • Build and deploy Docker image with DSV tag
  • Run docker container using DSV tag

products-cd

  • Download the project from Github
  • Build and deploy Docker image with HML tag
  • Run docker container using HML tag
  • Run interface tests in HML stage
  • Build and deploy Docker image with PRD tag
  • Run docker container using PRD tag

Jenkins configurations

  • Add your Dockerhub user and pass in credential with ID 'registryCredential' in Jenkins

jenkins-pipeline-example's People

Contributors

robsonbittencourt 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.