diff --git a/Jenkinsfile b/Jenkinsfile index 68e3135..366cc23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,12 +6,18 @@ pipeline { checkout scm } } - stage('Apply to Cluster') { + stage('Get credentials to Cluster') { steps { sh ''' az login --identity az aks get-credentials --resource-group tst-aks-rg --name edu kubelogin convert-kubeconfig -l azurecli + ''' + } + } + stage('Apply to Cluster') { + steps { + sh ''' kubectl apply -f namespace.yaml kubectl apply -f secret-store.yaml kubectl apply -f deploy.yaml