From 9ab4b877901e4e1d1e53ab17f3619173dcc2ad14 Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 12 May 2023 15:57:04 +0800 Subject: [PATCH] * Add clean database from unittest use. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5fa5b68a00..0341badb31 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -93,7 +93,7 @@ pipeline { steps { container('zentao') { - sh 'apachectl start ; initdb.php ; /apps/zentao/test/ztest batchInit ; /apps/zentao/test/ztest concurrency | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php ' + sh 'apachectl start ; initdb.php > /apps/zentao/unittestdb.spl ; /apps/zentao/test/ztest batchInit ; /apps/zentao/test/runtimne/ztf /apps/zentao/module/*/test -C 50 | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php ; initdb /apps/zentao/unittest.sql' publishHTML (target : [allowMissing: false,alwaysLinkToLastBuild: false,keepAll: true,reportDir: 'coverage',reportFiles: 'index.html',reportName: 'UT Coverage Report',reportTitles: 'UT Coverage Report']) sh 'pipeline-unittest.sh /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log' }