Splitted main stage to 2 separate stages

This commit is contained in:
Marcin-Ramotowski 2025-05-08 21:13:18 +00:00
parent 55718d1d1e
commit e1c0011264

8
Jenkinsfile vendored
View File

@ -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