Distributing a Build

Hands-On Lab

 

Photo of Michael McClaren

Michael McClaren

Linux Training Architect I in Content

Length

01:00:00

Difficulty

Advanced

In this lesson we will configure maven to build a project pulled from SCM, but we will configure a slave node to build the project instead of building the project on the master node.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

It has been determined that the resources that are being used for the maven build from M3 need to be reduced and that it would be better if the project was built on more robust hardware, this means that you will need to take the build and make it a distributed build using the provided slave node. This node is not configured and must be setup to perform the build. The freestyle project should be configured to ensure that the build is only run on slave1. The shell bin/makeindex should be run and the index.jsp needs to be archived. Remember that the jenkins user will need to be added to the slave, keyed to the slave instance and given sudo nopasswd access. The freestyle project name must be mavenproject