Skip to main content

Command Palette

Search for a command to run...

Creating a Freestyle Project in Jenkins: A Step-by-Step Guide

Published
β€’2 min read
Creating a Freestyle Project in Jenkins: A Step-by-Step Guide
S

As a DevOps Engineer, I thrive in the cloud and command a vast arsenal of tools and technologies: ☁️ AWS and Azure Cloud: Where the sky is the limit, I ensure applications soar. πŸ”¨ DevOps Toolbelt: Git, GitHub, GitLab – I master them all for smooth development workflows. 🧱 Infrastructure as Code: Terraform and Ansible sculpt infrastructure like a masterpiece. 🐳 Containerization: With Docker, I package applications for effortless deployment. πŸš€ Orchestration: Kubernetes conducts my application symphonies. 🌐 Web Servers: Nginx and Apache, my trusted gatekeepers of the web.

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

  1. Open your web browser and navigate to the Jenkins dashboard by entering the URL http://your_server_ip_or_domain:8080 (replace your_server_ip_or_domain with the actual IP address or domain name of your Jenkins server).

  2. 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.

More from this blog

devopsvoyager

415 posts