testing kubernetes without kubeconfig

This commit is contained in:
areeqakbr 2025-02-26 09:01:54 +07:00
parent 328643bdf9
commit 06d69ca388
1 changed files with 5 additions and 7 deletions

12
Jenkinsfile vendored
View File

@ -84,13 +84,11 @@ spec:
stage('Debug Kubernetes') { stage('Debug Kubernetes') {
steps { steps {
container('kubectl') { container('kubectl') {
withKubeConfig([credentialsId: '1c8bd8d9-1590-468c-afc7-24495d4330dc']) { sh '''
sh ''' kubectl cluster-info
kubectl cluster-info kubectl get nodes
kubectl get nodes kubectl get pods --all-namespaces
kubectl get pods --all-namespaces '''
'''
}
} }
} }
} }