Introduction ๐
Jenkins is a powerful open-source automation server that facilitates continuous integration and delivery. One of the fundamental building blocks in Jenkins is the Freestyle Project, which allows users to create versatile and customizable jobs without the need for scripting or coding. In this guide, we'll walk through the step-by-step process of creating a Freestyle Project in Jenkins.
Prerequisites
Before you start creating a Freestyle Project in Jenkins, ensure that you have a Jenkins server installed and running. If you haven't set up Jenkins yet, you can follow the official installation guide or Installation Guide in this Jenkins Series to get started.
Step 1: Access Jenkins Dashboard
Open your web browser and navigate to the Jenkins dashboard by entering the URL
http://your_server_ip_or_domain:8080
(replaceyour_server_ip_or_domain
with the actual IP address or domain name of your Jenkins server).Log in to Jenkins using your credentials.
Step 2: Create a New Freestyle Project
- On the Jenkins dashboard, click on the "New Item" link on the left-hand side.
Enter a name for your project in the "Enter an item name" field. Choose "Freestyle project" as the project type.
Click on the "OK" button to create the new Freestyle Project.
Step 3: Add Build Steps
Go to the Build Steps and Click on Execute Shell.
Type any command, here I am using
echo "The First Job"
, then Click on Save.
Step 4: Start Building the Job
- Click on "Build Now"
- As the build is successful. Now click on the green color text (#1)
- Now, To see the output of your created job. Click on the Console Output
- Click on the Console Output
Conclusion ๐
Creating a Freestyle Project in Jenkins offers a straightforward and flexible approach to setting up automated build and deployment processes. By following the step-by-step guide outlined in this article, you can easily create and configure a Freestyle Project to meet your project's specific requirements within the Jenkins environment.