diff --git a/Jenkinsfile b/Jenkinsfile index 3d5a4773..ff000bd6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages { stage('Deploy To Kubernetes') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://99B5504F77DEA5C8909A55CC730B6CD2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl apply -f deployment-service.yml" } @@ -13,7 +13,7 @@ pipeline { stage('verify Deployment') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://99B5504F77DEA5C8909A55CC730B6CD2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl get svc -n webapps" } }