adding debug pipeliners

This commit is contained in:
areeqakbr 2025-02-25 16:54:35 +07:00
parent 139bf68fc6
commit 2cd9ad3c62
1 changed files with 15 additions and 0 deletions

15
Jenkinsfile vendored
View File

@ -81,6 +81,21 @@ spec:
}
}
stage('Debug Kubernetes') {
steps {
container('kubectl') {
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
sh '''
kubectl cluster-info
kubectl get nodes
kubectl get pods --all-namespaces
'''
}
}
}
}
stage('Deploy to Kubernetes') {
steps {
container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container