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
Labs

Building from SCM

In this lab, you will configure Maven to perform a build. This includes pulling the source code for the build from SCM. At the end of the build process, you will also create an artifact for the build.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 15m
Published
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

    Update the Jenkins Plugins and Configure the Maven Installer

    Navigate to the public IP address and specify port 8080.

    Update the Jenkins Plugins

    1. Click the bell icon.
    2. Click Apply Migration.
    3. Choose Manage Jenkins.
    4. Choose Go to plugin manager.
    5. Select all and click Update.
    6. Check Restart Jenkins when installation is complete and no jobs are running once all items have been marked for action.
    7. Reconnect to Jenkins.

    Configure the Maven Installer

    1. Navigate to Manage Jenkins and click Tools.
    2. Scroll down to Maven installations and add a new one.
    3. The Maven installation should be named M3.
    4. Create a new Maven installation and set it to install automatically.
  2. Challenge

    Configure the Build to Use Maven and Make the Index File

    Create a new Freestlye Project called mavenproject.

    Update the source code management to use the Git repository provided in the lab instructions.

    Add and configure a build step for top-level Maven components.

    Configure M3 as the Maven server and set the Goals to clean package.

    Configure a build step to run the following go command:

    bin/makeindex
    

    Add a post-build step to archive the artifacts.

    Fingerprint all archived artifacts and set the file to index.jsp.

    Run the build and verify that the index.jsp is in the root of the directory.

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