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" }