From 1dda7cfb2b75803eac084c90a94f10e0c8716752 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Thu, 8 May 2025 20:28:21 +0000 Subject: [PATCH] Prepared initial pipeline to deploy to cluster --- Jenkinsfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6465326 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,18 @@ +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' + } + } + } +}