Jenkins

Jenkins - Tomcat Setup

Jenkins - Tomcat Setup

The following criteria must be completed before Jenkins Tomcat can be configured.

Step 1: Checking the Java Installation

To test Java installation, open the console and run the java command below.

Tomcat can be downloaded from its official website Tomcat.apache.org

To receive the Tomcat download, go to https://tomcat.apache.org/download-70.cgi.

Navigate to the section under 'Binary Distributions.' Get the 32-bit Windows zip file.

Then, unzip the downloaded zip file's contents.

Step 4: Jenkins and Tomcat Setup

Copy the Jenkins.war file downloaded in the previous section to the tomcat folder's web apps.

Open the command prompt now. Navigate to the directory containing the tomcat7 folder from the command prompt. Navigate to the bin directory in this folder and perform the start command. E:Appstomcat7bin>startup.bat is a bat file.

When the processing is finished without severe errors, the command prompt will display the following line.

INFO: Server boots up in 1302 milliseconds.

Open a browser and navigate to http://localhost:8080/jenkins, where Jenkins will be running on Tomcat.

 

Jenkins - Git Setup

For this activity, internet connectivity is required on the PC where the Jenkins is installed. Click the Manage Jenkins button on the left side of your Jenkins Dashboard (Home screen).

Click on the option ‘Manage Plugins’ on the next screen.

Click the Available tab on the next screen. This tab displays a list of plugins that may be downloaded. Enter 'Git plugin' in the 'Filter' tab.

Following that, the list will be filtered. Check the Git Plugin box and click the 'Install without Restart' button.

The installation will now begin and the screen will refresh to show the download status.

After all the installations have been completed, restart Jenkins by typing the following command into your browser. http://localhost:8080/jenkins/restart

To check, go to the Jenkins menu and select New Item. When Jenkins is restarted, Git will be available as a job configuration option. Then, for a task, enter a name; in this case, the name is 'Demo.' As the item type, choose 'Freestyle project.' Select the OK option.

 

On the next screen, browse to the “Source code Management section”, and Git will appear as an option.

Jenkins - Maven Setup

Learn about the Maven Setup in this Jenkins tutorial:

Step 1: Downloading and Setting Up Maven

It can be done from the official website for maven is Apache Maven

Navigate to the Files area of the website and save the URL to the Binary.zip file.

Once the file has been downloaded, extract it to the appropriate application location. The maven files will be stored under E:Appsapache-maven-3.3.3 for this purpose.

Step two: Configuring Jenkins and Maven

Click Manage Jenkins from the left-hand side menu in the Jenkins dashboard (Home screen).

Then, click on ‘Configure System’ (from the right-hand side).

 

Scroll down until you see the Maven area in the Configure system screen, then select the 'Add