Skip to main content Skip to complementary content

Configuring variables and paths to third-party tools

How to store the environment variables and paths to the third-party tools needed to run your Jenkins pipeline (JDK/OpenJDK, Maven).

Procedure

  1. Navigate to Manage Jenkins > Configure System.
  2. In the Global properties > Environment variables area, add the environment variables corresponding to the following tools:
    • Java or OpenJDK
    • Maven: name the variable MAVEN_HOME, this name will be used in the pipeline script
    • M2 Maven repository: name the variable M2_HOME, this name will be used in the pipeline script
      Information noteTip: This variable value corresponds to the <studio_path>/configuration/.m2/repository folder.
  3. Click Save to take the changes into account.
  4. In the Global Tool Configuration > Maven area, add the M3 Maven tool:
    1. Click Add Maven.
    2. Name the tool M3, this name will be used in the pipeline script.
    3. Enter the path to your Maven installation directory in the MAVEN_HOME field.
  5. Click Save to take the changes into account.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!