Jenkins IntegrationConfigure Maven in Jenkins

Configure Maven in Jenkins

Configure Maven in Jenkins to build and run algoQA automation projects, enabling automated dependency management and test execution.

Set up Maven in Jenkins to enable building and running your algoQA-generated Java Selenium scripts. This guide covers configuring the Maven home path and installing the required Maven plugins.

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 dashboard with Manage Jenkins menu item highlighted in the sidebar
Jenkins Configuration screen with Tools option highlighted among System, Plugins and Nodes
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
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
    Jenkins plugin search for Maven with Maven Integration and Pipeline Maven plugins enabled