From 5a2c50e689b3b7f46351dd5a6fa19d456b850880 Mon Sep 17 00:00:00 2001 From: lzhwustl <143428103+lzhwustl@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:32:14 -0500 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bb4b4b52..53f88d08 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=b4c73c1b-a943-4a53-bca1-793e1d318e69', + 'AZURE_TENANT_ID=96e1abbc-f26f-4382-ae38-44286f1c6f21']) { stage('init') { checkout scm } @@ -19,10 +19,10 @@ node { } stage('deploy') { - def resourceGroup = '' - def webAppName = '' + def resourceGroup = 'jenkins-get-started-rg' + def webAppName = 'anyhh' // login Azure - withCredentials([usernamePassword(credentialsId: '', passwordVariable: 'AZURE_CLIENT_SECRET', usernameVariable: 'AZURE_CLIENT_ID')]) { + withCredentials([usernamePassword(credentialsId: 'AzureServicePrincipal', passwordVariable: 'AZURE_CLIENT_SECRET', usernameVariable: 'AZURE_CLIENT_ID')]) { sh ''' az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET -t $AZURE_TENANT_ID az account set -s $AZURE_SUBSCRIPTION_ID