Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

Use Jenkins and Azure DevOps to Deploy a Node.js App

You have a Node.js application that you'd like to integrate using Jenkins. Instead of deploying to Azure from Jenkins though, you need to hand over the build artifacts to Azure DevOps to complete the deployment. Perform the necessary steps to create a CI process on the Jenkins server and the CD process in Azure DevOps.

Azure icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 30m
Published
Clock icon Aug 19, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an Azure DevOps Organization

    1. Log in to the Azure Portal using the provided credentials.
    2. Search for Azure DevOps from the services menu.
    3. Create a new organization and project named MyFirstProject.
  2. Challenge

    Set Up Jenkins Server

    1. In the Azure portal, go to Virtual Machines and copy the public IP of the jenkins virtual machine.
    2. Paste the public IP in a new browser tab followed by :8080 (e.g., http://40.1.33.104:8080).
    3. Log in to the Jenkins server via SSH, and copy the initialAdminPassword.
    4. Paste the password into the Jenkins installation wizard.
    5. Continue with installing Jenkins with the suggested plugins installed.
  3. Challenge

    Create CI Build

    1. This lab requires the use of a self-hosted agent. Instructions can be found here: Self-Hosted Agent Instructions.
    2. Create a new freestyle project.
    3. Fork this GitHub repository: https://github.com/ACloudGuru-Resources/content-az400-lab-resources.git using your own GitHub account.

      Note: If you do not have a GitHub account, you can sign up for one for free.

    4. Paste in your GitHub URL, run npm install, and archive the artifacts.
    5. Verify that the build was successful.
  4. Challenge

    Create CD Pipeline

    1. Create a service connection for Azure Resource Manager using the provided service principal.
    2. Create a service connection for Jenkins, and use the credentials you created during the Jenkins installation.
    3. To enable you to see the Releases option under the Pipelines icon, select AzureDevOps in the top right. In the bottom right, click Organization settings. Under the Pipelines category on the left, choose Settings. Turn off the Disable creation of classic build pipelines and the Disable creation of classic release pipelines options.
    4. Create a new release pipeline and deploy the artifact from Jenkins to the existing Azure WebApp.
    5. Make sure the pipeline is using the self-hosted agent.

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