CloudAcademy

Create Jenkins CICD Pipeline with Artifactory Integration for Build Artifact Management

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
Connecting to the Virtual Machine using SSH
lock
Launch Jenkins and Artifactory Docker Containers
lock
Login to Artifactory and Complete Default Installation
lock
Login to Jenkins and Complete the Default Installation
lock
Install and Configure Artifactory and Gradle Plugins
lock
Create and Execute Jenkins Pipeline Gradle Job
lock
Review Artifactory Hosted Build Artifacts
lock
Validate AWS Lab

Ready for the real environment experience?

DifficultyIntermediate
Duration1h 30m
Students32

Description

Lab Overview

Integrating Jenkins with Artifactory provides you with an automated platform for building and managing deployable artifacts (binaries).

In this Lab, you will launch a Jenkins and Artifactory CICD environment using Docker containers on a provided EC2 instance. You will then configure a Jenkins build pipeline to build, compile, and package a sample Java servlet web application. The build pipeline will publish the build artifacts into Artifactory, which in turn will catalog and register them.

This Lab is aimed at DevOps and CICD practitioners, and, in particular, build and release engineers interested in managing and configuring Jenkins together with Artifactory to manage and maintain build artifacts.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Install and configure a Jenkins and Artifactory CICD environment using Docker containers
  • Configure Jenkins with the Gradle plugin to perform the core build and packaging for a sample Java servlet web application
  • Configure Jenkins with the Artifactory plugin for automated build artifact management
  • Create and setup a Jenkins build pipeline using a Jenkinsfile hosted within a GitHub repo
  • Use the Artifactory web application to examine and review the registered and published build artifacts

Lab Prerequisites

You should:

  • Be comfortable with SSH to remotely administer a Linux-based server
  • Be comfortable with basic Linux administration

Lab Environment

This Lab will start with the following AWS resources being provisioned automatically for you:

  • A single EC2 instance, named cicd.platform.instance, which will have a public IP address attached

To achieve the Lab end state, you will be walked through the process of:

  • SSHing into the EC2 instance, named cicd.platform.instance
    • Use Docker Compose to launch the following Docker containers:
      • Jenkins
      • Artifactory
  • Using a browser, administer and configure Jenkins - installing the required plugins. Connectivity to Jenkins will be done via the cicd.platform.instance Public IP address 
  • Using a browser, administer and configure Artifactory. Connectivity to Artifactory will be done via the cicd.platform.instance Public IP address 
  • Create a Jenkins build pipeline and configure it to build a sample Java servlet web application hosted on GitHub, with the build artifacts being automatically published into Artifactory
  • Execute the Jenkins build pipeline and confirm that it has completed successfully, publishing the build artifacts automatically into Artifactory
  • Confirm that Artifactory has recieved and catalogued the Jenkins build artifacts

 

 

About the Author

Students5601
Labs6
Courses41
Learning paths8

Jeremy is a Cloud Researcher and Trainer at Cloud Academy where he specializes in developing technical training documentation for security, AI, and machine learning for both AWS and GCP cloud platforms.

He has a strong background in development and coding, and has been hacking with various languages, frameworks, and systems for the past 20+ years.

In recent times, Jeremy has been focused on Cloud, Security, AI, Machine Learning, DevOps, Infrastructure as Code, and CICD.

Jeremy holds professional certifications for both AWS and GCP platforms.