Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon

Distributing a Build

In this hands-on lab, 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.

Google Cloud Platform icon

Path Info

Clock icon Advanced
Clock icon 1h 0m
Clock icon Nov 16, 2018

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Configure the Slave Machine for Use with the Jenkins Master

    1. Modify the /etc/passwd file on the master to allow the Jenkins user a shell login.
    2. Add a password to the jenkins user so you are able to su to that user.
    3. Once this is done, su to the jenkins user and run ssh-keygen.
    4. Then, as the jenkins user, ssh to the slave machine.
    5. Create a jenkins user, add them to sudoers, and create the entry with nopasswd.
    6. Exchange the jenkins user's ssh keys with the slave server.
    7. Verify key login is working on the slave server.
  2. Challenge

    Run the Maven Build on the Remote Agent

    1. Create a Maven installation named M3.
    2. From Manage Jenkins > Manage Nodes, set up the remote node.
    3. Label the node slave1.
    4. Create a freestyle project named mavenproject that is set to run only on slave1.
    5. Configure it to use M3 maven install.
    6. Create a shell build step to run bin/makeindex.
    7. Archive the index.jsp and ensure it gets fingerprinted.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans