From ef66315fd27e591ac803d349d8a9fcf71e52ef86 Mon Sep 17 00:00:00 2001 From: RoseMariaJacob <93197888+RoseMariaJacob@users.noreply.github.com> Date: Wed, 17 Nov 2021 17:56:31 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bb4b4b52..b8ff0ed9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,8 +8,8 @@ def getFtpPublishProfile(def publishProfilesJson) { } node { - withEnv(['AZURE_SUBSCRIPTION_ID=', - 'AZURE_TENANT_ID=']) { + withEnv(['AZURE_SUBSCRIPTION_ID=ab3cab76-befc-48de-80b0-f275635478cd', + 'AZURE_TENANT_ID=0382d0a0-e7b1-43dc-9175-d82278469be7']) { stage('init') { checkout scm } @@ -19,10 +19,10 @@ node { } stage('deploy') { - def resourceGroup = '' - def webAppName = '' + def resourceGroup = 'enkins-get-started-rg' + def webAppName = 'app5name' // login Azure - withCredentials([usernamePassword(credentialsId: '', passwordVariable: 'AZURE_CLIENT_SECRET', usernameVariable: 'AZURE_CLIENT_ID')]) { + withCredentials([usernamePassword(credentialsId: 'AzureServicePrincipal', passwordVariable: 'Rosemaria@123', usernameVariable: 'rosemariajacob')]) { sh ''' az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET -t $AZURE_TENANT_ID az account set -s $AZURE_SUBSCRIPTION_ID