From e1c00112642b61c7e751333564ef374667ddd4f6 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Thu, 8 May 2025 21:13:18 +0000 Subject: [PATCH] Splitted main stage to 2 separate stages --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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