Day 22 - Getting Started with Jenkins

Day 22 - Getting Started with Jenkins

Day 22 of 90daysofdevops

What is CI/CD?

CI/CD stands for Continuous Integration/Continuous Delivery (or Continuous Deployment), which is a set of practices and methodologies used in software development to achieve rapid and reliable delivery of software applications.

  • Continuous Integration (CI) is a practice that involves developers integrating code changes frequently and automatically into a shared code repository, where the code is automatically built, tested, and verified to ensure that it works as expected. This practice helps to catch integration errors and conflicts early in the development process, which reduces the risk of introducing errors and bugs into the codebase.

  • Continuous Delivery (CD) is a practice that involves automating the entire software release process, from building and testing the software to deploying it to production. CD ensures that software is always in a release-ready state and can be released to production at any time with minimal risk.

  • Continuous Deployment (CD) is an extension of Continuous Delivery that automatically deploys the software to production once it has passed all the necessary tests and verifications.

CI/CD practices are designed to improve the speed, quality, and efficiency of the software development process by automating key tasks and reducing the amount of manual effort required.

What you understood in Jenkin, write a small article in your own words.

  • Jenkins is an open-source automation server for building, testing, and deploying software applications.

  • It supports continuous integration and continuous delivery (CI/CD) workflows.

  • Jenkins can automate various aspects of the software development lifecycle, including building, testing, packaging, and deploying applications.

  • It supports a wide range of programming languages and tools, and integrates with many third-party systems and services.

  • Jenkins is highly configurable and extensible, with a large number of plugins and integrations available to extend its functionality.

  • It provides a web-based user interface and a powerful scripting language (Groovy) for defining complex pipelines and workflows.

  • Jenkins is popular among DevOps teams and software developers who want to automate their build and deployment processes, reduce errors and failures, and increase the speed and efficiency of their software development workflows.

Jenkins Architecture - TAE

Create a freestyle pipeline to print "Hello World!!

  • Open the Jenkins web interface and click "New Item" to create a new job.

  • Give the job a name, such as Hello World, and select "Freestyle project" as the job type. Click OK to create the job.

  • In the job configuration page, scroll down to the Build section and click Add build step.

  • Select Execute shell from the dropdown menu to add a shell command to the build.

  • In the command field, enter the following command: echo "Hello World!!". This command will print Hello World!! to the console output of the build.

  • Save the job configuration by clicking on Save.

  • Click Build Now to run the job and see the Hello World!! message printed to the console output.

That's it! We've now created a freestyle pipeline in Jenkins that prints "Hello World!!" when it is executed.

Thank you for reading!!
~Shreya Gupta

Great initiative by the #trainwithshubham community. Thank you Shubham Londhe

#devops #90daysofdevops #jenkins #freestylepipeline