Simple CI/CD Pipeline Using Jenkins

Simple CI/CD Pipeline Using Jenkins

In this blog we gone a see creating a CI/CD Pipeline using Jenkins. Some pre-requisites to create a CI/CD pipeline using Jenkins are Open-JDK-8, Jenkins installed on our system. At the very first we see a little bit introduction of Jenkins and why we need Jenkins Pipeline. Some pre-requisites to create a CI/CD pipeline using Jenkins are. Open-JDK-8Je

Jenkins

Jenkins is an open-source automation tool to create a continuous integration pipeline. It is used to building and testing your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. It integrates all the software development lifecycle stages such as build, test, run and deploy. All that happens by running a single file called “Jenkinsfile”. Jenkinsfile is a file in which we define all the steps or we can say the definition of Jenkins pipeline is defined inside the Jenkinsfile and is checked into source control.

Why Jenkinse Pipeline

  • Jenkins pipeline allows you to define the complex workflow of your application in a single step.
  • Its functionality helps Jenkins to support continuous delivery (CD). 
  • It can be pausable also. The pipeline can stop and wait for human approval before proceeding further to complete the task defined in the pipeline.
  • It also provides the feature of sending email based on our requirement i.e mail after build state: “stable” or mail after any build state.
  • Whenever the new code is committed to git. A pipeline can automatically integrate that code and start building pipelines again itself.

There are two type of pipeline you can create

  • Scripted-Pipeline
  • Declarative-Pipeline
  • Another option is through the classic-UI

In this blog we gone a see all about declarative pipeline and is syntactically easy than Scripted pipeline.

For your referance you can use my code with Jenkinsfile Here….

Steps to create Pipeline

  1. Go to Jenkins and login with your username and password you provided at the time installing Jenkins.

2. Click on New Item

3. “Enter an item name” and select “Pipeline” -> Click on ok.

4. A page opens. In this you will see the following blocks

jenkins scala cd ci pipeline

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Travis CI vs Jenkins: Which CI/CD Tool Is Right For You?

The ultimate showdown between Travis CI vs Jenkins. Check out this guide to know who wins the race! Travis CI and Jenkins are both popular CI/CD tools and were launched in the same year i.e. 2011. As of July 2020, Jenkins has been the more obvious choice as CI/CD tool with 15.9k stars & 6.3k forks, in comparison to TravisCI which has 8k stars & 756 forks. However, these numbers alone don’t imply which CI/CD tool is more suitable for your upcoming or existing project. Jenkins is an open-source & Travis CI is free for open-source projects.

Serverless CI/CD on the AWS Cloud

To set up a serverless CI/CD pipeline in your AWS environments, there are several key services that you need to use. Find out more here.

DevOps Jenkins: CI/CD with Jenkins Pipeline, AWS Pipeline

DevOps Jenkins: CI/CD with Jenkins Pipeline, AWS Pipeline

CI/CD Pipeline for a NodeJS Application with Jenkins

In this article, we are talking about how to Build Node.js and React application on Jenkins with Freestyle Project. CI/CD Pipeline for a NodeJS Application with Jenkins

CI/CD Pipeline of Jenkins using Groovy Language with Monitoring on the Top of Kubernetes

Today, I have a great setup of Automation for you. From the Last couple of weeks, I am showing you some great setups of Kubernetes and Jenkins. But maybe you have not seen my all this setup till yet as because I uploaded on different platforms. But don’t worry I will guide you. Today, I Integrate all of my previous setups and create an advanced CI/CD setup. If I give you high-level-idea so we are going to integrate Git, GitHub, Docker, Advance Jenkins (Job-DSL) , Kubernetes, Prometheus and Grafana. CI/CD Pipeline of Jenkins using Groovy Language with Monitoring on the Top of Kubernetes