adding debug pipeliners
This commit is contained in:
parent
139bf68fc6
commit
2cd9ad3c62
|
|
@ -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') {
|
stage('Deploy to Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container
|
container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue