From 98ab090f231dff9235ff17527f9db73a282274fe Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 2 Feb 2023 13:20:36 +0000 Subject: [PATCH] environment test --- Jenkinsfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f6d766..4482680 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -94,11 +94,14 @@ podTemplate( } stage('Deploy Application on K8s') { - withKubeConfig([ - credentialsId: 'microk8s-cluster', - serverUrl: env.K8s_SERVER_URL, - contextName: env.K8s_CONTEXT_NAME, - clusterName: env.K8s_CLUSTER_NAME]) { + container('kubectl') { + // withKubeConfig([ + // credentialsId: 'microk8s-cluster', + // serverUrl: env.K8s_SERVER_URL, + // contextName: env.K8s_CONTEXT_NAME, + // clusterName: env.K8s_CLUSTER_NAME]) { + // sh 'kubectl config view' + // } sh 'kubectl config view' } }