Add stage for cp results to cfg node
Also as e2e func was moved into Test.groovy,
add it initialization and usage
Change-Id: I3d2c2e0f8aa161cec1d8da67d350035fb09d8b3d
diff --git a/mk-k8s-simple-deploy-pipeline.groovy b/mk-k8s-simple-deploy-pipeline.groovy
index e515486..37aa245 100644
--- a/mk-k8s-simple-deploy-pipeline.groovy
+++ b/mk-k8s-simple-deploy-pipeline.groovy
@@ -28,6 +28,7 @@
openstack = new com.mirantis.mk.Openstack()
salt = new com.mirantis.mk.Salt()
orchestrate = new com.mirantis.mk.Orchestrate()
+test = new com.mirantis.mk.Test()
node {
@@ -86,11 +87,15 @@
if (RUN_TESTS == "1") {
sleep(30000)
stage('Run k8s bootstrap tests') {
- orchestrate.runConformanceTests(saltMaster, K8S_API_SERVER, 'tomkukral/k8s-scripts')
+ test.runConformanceTests(saltMaster, K8S_API_SERVER, 'tomkukral/k8s-scripts')
}
stage("Run k8s conformance e2e tests") {
- orchestrate.runConformanceTests(saltMaster, K8S_API_SERVER, CONFORMANCE_IMAGE)
+ test.runConformanceTests(saltMaster, K8S_API_SERVER, CONFORMANCE_IMAGE)
+ }
+
+ stage("Copy k8s e2e test output to config node ") {
+ test.copyTestsOutput(saltMaster,CONFORMANCE_IMAGE)
}
}