Jenkins IntegrationConfigure Maven in Jenkins

Configure Maven in Jenkins

This article provides instructions to configure Maven in Jenkins, ensuring that Jenkins can recognize and use these tools for executing Java-based Selenium scripts generated using algoQA.

Configure Maven in Jenkins

Perform the following:

Log in to Jenkins

Navigate to the Dashboard > select Manage Jenkins > Tools.

Jenkins dashboard with Manage Jenkins menu item highlighted in the sidebar
Jenkins Configuration screen with Tools option highlighted among System, Plugins and Nodes

Navigate to the Maven section.

Select the Maven Installations dropdown list, enter the Name and MAVEN_HOME, then save the details. The path may vary depending on your installation directory.

Jenkins Maven configuration with MAVEN_HOME field and Save button highlighted

Click Save.

Installing Maven Plugins in Jenkins

  1. Navigate to Manage Jenkins.
  2. Open Plugins in the Manage Jenkins section.
  3. Search for Maven in the Available Plugins option.
  4. Install the Maven Integration and Pipeline Maven Integration plugins, then restart Jenkins.
    Jenkins plugin search for Maven with Maven Integration and Pipeline Maven plugins enabled