try new test colletion
Change-Id: I4f999aea2de7a2096c1b13d8513ec610ce9d106e
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index edfabbc..eb1f24d 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -501,15 +501,27 @@
//
// Test
//
+ def artifacts_dir = '_artifacts'
if (common.checkContains('TEST', 'k8s')) {
stage('Run k8s bootstrap tests') {
- orchestrate.runConformanceTests(saltMaster, K8S_API_SERVER, 'tomkukral/k8s-scripts')
+ test.runConformanceTests(saltMaster, K8S_API_SERVER, 'tomkukral/k8s-scripts')
+
+ // collect output
+ file_content = salt.getFileContent(saltMaster, 'ctl01*', '/tmp/tomkukral-k8s-scripts.output')
+ sh "mkdir -p ${artifacts_dir}"
+
+ writeFile file: "${artifacts_dir}${output_file}", text: file_content
+
+ sh "cat ${artifacts_dir}${output_file}"
+
+ // collect artifacts
+ archiveArtifacts artifacts: "${artifacts_dir}${output_file}"
}
- stage('Run k8s conformance e2e tests') {
- orchestrate.runConformanceTests(saltMaster, K8S_API_SERVER, K8S_CONFORMANCE_IMAGE)
- }
+ //stage('Run k8s conformance e2e tests') {
+ // test.runConformanceTests(saltMaster, K8S_API_SERVER, K8S_CONFORMANCE_IMAGE)
+ //}
}
if (common.checkContains('TEST', 'openstack')) {