save kubeconfig artifacts
Change-Id: I8a021e42733875657ff3b65fe53a14aa2d4167de
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index ab18a3a..f2e34ae 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -289,8 +289,11 @@
}
stage('Install Kubernetes control') {
-
orchestrate.installKubernetesControl(saltMaster)
+
+ // collect artifacts (kubeconfig)
+ writeFile(file: 'kubeconfig', text: salt.getFileContent(saltMaster, 'I@kubernetes:master', '/etc/kubernetes/admin-kube-config'))
+ archiveArtifacts(artifacts: 'kubeconfig')
}
stage('Scale Kubernetes computes') {