Git Product home page Git Product logo

jenkins_sonarqube_basic_project's Introduction

DevSecOps project using Git, GitHub, Jenkins and SonarQube

An end to end CI-CD projects implementing DevSecOps principles

In this project, we will be see how to use Git, GitHub , Jenkins,SonarQube and DEPLOY on a AWS EC2.,

*Follow this project *

PreRequisites

  1. Git
  2. Github
  3. Jenkins
  4. SonarQube
  5. AWS EC2
  6. Java open-jdk 11
  7. Maven

Stage-01 : Install JDK and Create a Java Springboot application

Push all the web application page code file into github

Stage-02 : Install Jenkins and start Jenkins

  1. Install sonarqube scanner plugins
  2. go to manage jenkins > manage pulgins > search for plugins > install without restart

Stage-03 : Install Postgre Database and Install SonarQube

  1. Create a Project Manually
  2. Give name to your project , Project key then click on setup
  3. Click on other ci and generate token
  4. Copy that token and save somewhere because we need this token later.

Stage-04 : Configure Jenkins

  1. go to manage jenkins > Manage Credentials > system > Add credentials > secret text file > paste token we create in sonarqube and save and apply.
  2. go to manage Jenkins > Global tool configuration > Add Maven and SonarQube Scanner
  3. go to manage Jenkins > Configure System > Add SonarQube Server

Stage-05 : Create a Pipeline Job in Jenkins

  1. go to new item > enter item name > Pipeline > ok
  2. go to pipeline and create your pipeline script and save and apply
  3. Click on Build now to build your job
  4. to see output of the build , click on build > console output

Final output :

Jenkins Output :

You can find your jar file build by maven at /var/lib/jenkins/workspace/devopscicd/target/ this location

Sonarqube Output:

Jar file Deploy Output:

jenkins_sonarqube_basic_project's People

Contributors

praveensirvi1212 avatar logicopslab avatar

Stargazers

Roman avatar

Watchers

 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.