19 lines
523 B
Groovy
19 lines
523 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage('Apply to Cluster') {
|
|
steps {
|
|
sh 'az login --identity'
|
|
sh 'az aks get-credentials --resource-group tst-aks-rg --name edu'
|
|
sh 'kubectl apply -f namespace.yaml deploy.yaml ingress.yaml'
|
|
sh 'kubectl rollout status deployment/user-microservice -n user-microservice'
|
|
}
|
|
}
|
|
}
|
|
}
|