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.
Tasks:
1 . What you understood in Jenkin, write a small article in your own words
Jenkins is an open-source tool for automating the software development process, specifically focusing on continuous integration, continuous delivery, and deployment (CI/CD). It is written in Java and provides a platform for automating tasks such as building, testing, and deploying code. With its web-based interface and plugin architecture, Jenkins offers a flexible and highly customizable solution for software development teams, helping to improve the efficiency and reliability of their delivery pipeline.
Jenkins is written in Java and is designed to be highly extensible, making it possible to add additional functionality through the use of plugins. This gives it the flexibility to integrate with a variety of tools and systems, such as version control systems like Git, and it supports multiple build systems, including Apache Ant and Maven.
One of the key benefits of Jenkins is its web-based interface, which provides a comprehensive view of the software development process. This interface makes it possible to view build history, manage build artifacts, and configure the system. Additionally, Jenkins provides notifications in the event of build failures, making it easy to identify and address issues in a timely manner.
Overall, Jenkins is a powerful tool that helps software development teams to streamline their processes and improve the efficiency and reliability of their delivery pipeline. Its ease-of-use, flexibility, and extensibility make it an ideal choice for organizations of all sizes, and it has become a popular choice for many software development teams around the world.
2 . Create a freestyle pipeline to print "Hello World!!
To create a freestyle pipeline in Jenkins to print “Hello World!!” follow the below steps:
Step 1: Create a new Jenkins job by clicking on “New Item” on the Jenkins dashboard.
Step 2: Enter a name for the job and select “Freestyle project” as the job type.
Step 3: Under the “Build” section, click on “Add build step” and select “Execute shell” from the dropdown menu.
Step 4: In the “Command” field, type the following command:
echo "Hello World!!"
Step 5: Save the job configuration and run the job by clicking on “Build Now”.
Step 6: Once the job has been completed, click on the job name in the Jenkins dashboard to view the job output. You should see “Hello World!!” printed in the console output.
That’s it! You have successfully created a freestyle pipeline in Jenkins to print “Hello World!!”.