Freestyle Projects In Jenkins (original) (raw)

Last Updated : 13 Aug, 2025

In Jenkins freestyle project is a basic and simple way to create and build jobs of any type of application. For this project, there is no need for any scripting language or no need of coding skills. By using the console itself self you can do all the configurations needed for the project, which will save lots of time and effort for the employees.

Here are the steps to create a freestyle project in Jenkins.

Step 1: Access Jenkins and Log In

Open your browser and access the Jenkins URL (e.g., http://localhost:8080). Log in with yourJenkins credentials (username and password) that you set up during the installation process

Jenkins UI

Step 2: Create a New Freestyle Project

On the Jenkins dashboard, click on "New Item" to create a new project.

Freestyle project

Step 3: Configure the Project

After selecting Freestyle project, a configuration page will open where you can define all the settings for your project. Here, you will specify the source code repository, build tools, and other necessary configurations.

Provide details such as:

Configurations

Step 4: Configure the GitHub Repository

In this step, you will configure Jenkins to pull the source code from your GitHub repository.

General

Step 5: Add Credentials for GitHub

GitHub Credentials

Step 6: **Select Git Branch

In the Branches to build section, specify the branch you want Jenkins to clone.

Select the branch

Step 7: Configure Maven Build

You need to configure the Maven build step.

clean package

**Note: Do not include mvn here; Jenkins will automatically run Maven for you.

Maven Version

Step 8: Save the Configuration

After configuring all the necessary details, click on the Save button. You will be redirected to the build page of your project. On this page, click on the Build Now option to trigger the build.

Build Know

Step 9: **Monitor the Build

Once the build starts, Jenkins will execute the build process.

Job

Step 10: Review the Build Status

Jenkins Build Success

We created and configured a Freestyle project in Jenkins, connected it to your GitHub repository, and set up Maven for building your project.