Build Triggers

1.5 hours
  • 2 Learning Objectives

About this Hands-on Lab

In this lab we will be looking at the way jobs interact with one another. This is part of the process of making a pipeline in which one job’s build launches the build of another job. We will be passing artifacts and using parameters.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create webdev/index and Archive index.jsp

Configure maven M3

Create webdev folder

Configure the job to take parameters: name=steve

Pull from Git using the URL that is in the instructions

Build the top-level maven ‘clean package’

In a shell, run bin/makeindex

Archive index.jsp.

Create backend/tomcat and Trigger It to Build on index complete > successful

Create the backend folder and tomcat subfolder.

Create the tomcat frestyle project.

Configure trigger on index successful

Pull from the Git Url in lab instructions.

Build top-level maven ‘clean package’

Make sure that it runs after index completes.

Check index for steve.

Additional Resources

Jenkins login user: student
pass: OmgPassword!

index GitHub repository:
https://github.com/ACloudGuru-Resources/content-cje-prebuild.git

tomcat GitHub repository:
https://github.com/ACloudGuru-Resources/content-jenkinscert.git

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.

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?