lab6
2. Setting Up a CI Pipeline with Jenkins (Freestyle Project) This section explains how to create a CI pipeline as a Freestyle project that integrates with a Maven or Gradle project. Step 1: Create a New Jenkins Job 1. Log into Jenkins: o Open your web browser and navigate to your Jenkins URL (e.g., http://localhost:8080 or your cloud instance URL). o Log in with your admin credentials. 2. Create a New Job: o On the Jenkins dashboard, click on “New Item”. o Enter an Item Name: For example, Maven-CI (or Gradle-CI if you prefer Gradle). o Select “Freestyle project”. o Click “OK”. Step 2: Configure Source Code Management (SCM) 1. Select SCM: o In the job configuration page, scroll down to the “Source Code Management” section. o Select “Git” (if using Git for version control). 2. Enter Repository Details: o Repository URL: Enter the URL of your Git repository (for example, https://github.com/yourusername/your-maven-project.git). o Credentials: If your re...