From c06f716c9e7b2626991db4642a0e96044757ace5 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Tue, 18 Feb 2020 12:38:57 +0000 Subject: [PATCH] [18.02.20] Kubernetes check connections on slave node --- configuration/pipelines/build.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 895aa57..ba494c8 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -54,6 +54,17 @@ try { mvn '--version' + withCredentials( + [usernamePassword( + credentialsId: 'doctl', + passwordVariable: 'DOCTL_TOKEN', + usernameVariable: 'DOCTL_USERNAME' + )] + ) { + sh "doctl auth init --access-token ${DOCTL_TOKEN}" + sh "snap connect doctl:kube-config" + sh "doctl kubernetes cluster kubeconfig save cryptosky-kubernetes-cluster" + } sh "kubectl get serviceaccounts/cicd -o yaml" }