How to configure Maven installation in Jenkins per individual Slave node?

后端 未结 4 1544
长情又很酷
长情又很酷 2021-01-01 12:03

Symptom

If I create a Maven job in Jenkins (New Item => Maven project, using the maven plugin) with all defaults and run it, I get this error:

4条回答
  •  长情又很酷
    2021-01-01 12:50

    Assuming you have Java and Maven installed on your slave:

    1. Go to Manage Jenkins -> Manage Nodes
    2. Click configure icon on the node you wish to configure
    3. Scroll down to 'Node Properties' and tick the 'Tool Locations' checkbox
    4. Fill in the options for Java and Maven.

    It should now work (even if you have configured a Maven installation on the master).

提交回复
热议问题