- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab Info
Table of Contents
-
Challenge
Update the Jenkins Plugins and Configure the Maven Installer
Navigate to the public IP address and specify port
8080
.Update the Jenkins Plugins
- Click the bell icon.
- Click Apply Migration.
- Choose Manage Jenkins.
- Choose Go to plugin manager.
- Select all and click Update.
- Check Restart Jenkins when installation is complete and no jobs are running once all items have been marked for action.
- Reconnect to Jenkins.
Configure the Maven Installer
- Navigate to Manage Jenkins and click Tools.
- Scroll down to Maven installations and add a new one.
- The Maven installation should be named
M3
. - Create a new Maven installation and set it to install automatically.
-
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.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.