[18.02.20] Kubernetes check connections on slave node
This commit is contained in:
parent
73f918dd2e
commit
c06f716c9e
@ -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"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user