What is Jenkins?
Jenkins is an open source continuous integration-continuous delivery and deployment (CI/CD) automation software DevOps tool written in the Java programming language. It is used to implement CI/CD workflows, called pipelines.
Jenkins is a tool that is used for automation, and it is an open-source server that allows all the developers to build, test and deploy software. It works or runs on java as it is written in java. By using Jenkins we can make a continuous integration of projects(jobs) or end-to-endpoint automation.
Jenkins achieves Continuous Integration with the help of plugins. Plugins allow the integration of Various DevOps stages. If you want to integrate a particular tool, you need to install the plugins for that tool. For example Git, Maven 2 project, Amazon EC2, HTML publisher etc.
Task-1: What you understood in Jenkin, write a small article in your own words
Jenkins is an open-source tool written in Java that runs on Windows, macOS and other Unix- like systems. It is free to use, it automates the entire software development life cycle. It helps us to enable the CI/CD process which compiles, builds and test code for us.
Task-2: Create a freestyle pipeline to print "Hello World!!
Step 1: Install Jenkins
If you haven't already, you need to install and set up Jenkins on your system. You can follow the official Jenkins installation guide for your operating system: Jenkins Installation
Step 2: Create a New Freestyle Project
Open your Jenkins dashboard after installation and click on "Create a job" on the right-hand side menu.
Enter a name for your project, e.g., "HelloWorldPipeline" and Select "Freestyle project" and click "OK".
Add a simple description
Step 3: Configure the Freestyle Project
In the project configuration page, scroll down to the "Build" section. Click on the "Add build step" dropdown and select "Execute shell" (assuming you're using a Unix-like system) or "Execute Windows batch command" (for Windows).
In the command box, simply enter the command to print "Hello World!!". For Unix-like systems, you can use:
Save your configuration by clicking "Save" at the bottom of the page.
Step 4: Run the Pipeline
Go back to your Jenkins dashboard and find your "HelloWorldPipeline" project and click on it and then click on "Build Now" to manually trigger a build.
Now, Click on #1
Now, Click on "Console Output" It should display "Hello World!!"
Congratulations! You've created a simple Freestyle Jenkins pipeline that prints "Hello World!!"
I hope you like my blog..!!
Stay Connected with me for more interesting articles on DevOps, if you like my blog follow me on Hashnode and Linkedin (https://www.linkedin.com/in/som-shanker-pandey/