Cicd documentation layout


Blue-print diagram of CICD Jenkins pipeline



Download 6.25 Mb.
Page33/39
Date15.06.2023
Size6.25 Mb.
#61535
1   ...   29   30   31   32   33   34   35   36   ...   39
CIcd

12.1. Blue-print diagram of CICD Jenkins pipeline:





Blue-print diagram of CICD Jenkins pipeline

12.2. Objectives


To build a CI/CD pipeline for a sample spring-boot java application using Github as a version control system, SonarQube as a code test analysis, Maven as a build tool, Jenkins as an integration server, Nexus as a artifacts stores repository, Docker as a container technology and Kubernetes on Azure as a platform. The end goal is to automate the following process:

  • Checkout code.

  • Code test analysis.

  • Compile code.

  • Store Arifacts(jars, wars)

  • Build docker images.

  • Push images to azure cluster registry.

  • Pull new images from registry.

  • Deploy the app on Kubernetes.

12.3. Perquisites


In order to follow the steps in this guide, you will need the following:

  • GitHub Account: You need a GitHub account to fork/clone the To Do app repository.

  • Azure Microsoft Account: You need an Azure Microsoft account in order to use Azure.

  • Azure CLI: You need to install the current version of Azure CLI in order to create a Kubernetes cluster on Azure.

  • kubectl: You need to install the kubectl command-line interface in order to run commands against the Kubernetes cluster.

  • Helm: You need to install Helm and Tiller in order to help you install Jenkins.

12.4. Create A GitHub Webhook


In order to integrate the GitHub repository into Jenkins, a webhook can be used to run the Jenkins build whenever a code commit is made in GitHub. To create the GitHub webhook, execute the following steps:

  • In Github, move to your repository and select “Settings”.

  • On the left-hand side, select “Webhooks”.

  • Click on the “Add webhook” button.

  • In the “Payload URL”, enter http://
    /jenkins/github-webhook/, replacing the
    with the IP address of the Jenkins server.

  • Leave the options with the default selection and click on the “Add webhook”.

Download 6.25 Mb.

Share with your friends:
1   ...   29   30   31   32   33   34   35   36   ...   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page