Setting up environment variables

Finally, we create environment variables with subscription ID, tenant, name, and password. We need to export this on the Jenkins node and set up a deployment. So let's do that: 

  1. Open the Jenkins in browser and add a new job with a click on New Item. Enter the item name myAzureFunctionDeploy and select Freestyle project, and click OK.
  2. On the job configuration page, tick This project is parameterised and add Password Parameter below the name and default values retrieved from the Azure commands as follows: 
azureServicePrincipalTenantIdazureServicePrincipalClientIdazureServicePrincipalPasswordazureSubId
  1. Let's click on the Source Code Management tab and add the repository URL as https://github.com/shzshi/azure-helloworld-ci.git ...

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.