Building in Jenkins

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this lab, you will create a simple shell build in a folder on a prepped server with Jenkins installed to help you get comfortable with the interface and navigation in the freestyle build type. Once you have run the build, you will then check the output and verify that the build is progressing as intended.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Folder Named Test

From the Jenkins dashboard, create a folder named Test.

Create and Run a User Test Job That Saves Its Output in a File Named user_test.txt

Using a freestyle build, configure and run a user_test job that outputs a file named user_test.txt in the Test folder. Then, view the contents of the file to determine the version of Linux that is running and the user that ran the build.

Additional Resources

Scenario

You have installed Jenkins, but you want to be sure that the installation is working before you present it to your boss. You have decided that the best way to do this is to have Jenkins run a project that outputs the version of Linux that it is running on and the user that is running the build. You are going to place this output in a file called user_test.txt within a folder named test.


Lab Setup

Access the Jenkins environment by copying the public IP address provided with the lab credentials. Then, in a browser window, navigate to that IP address using

http://<public IP address>:8080

When prompted, log in to Jenkins with the username student and the password OmgPassword!

The command that is needed for the shell portion of this lab is:

uname -a && whoami > user_test.txt

What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!