From e008b5866d8d1681d477dc6f057a1f2dcb47f6cd Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 15 May 2023 08:40:16 +0800 Subject: [PATCH] * Fix delete db for unitest in pipeline. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ad6695ddd..3e0a639881 100755 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -93,7 +93,7 @@ pipeline { steps { container('zentao') { - sh 'apachectl start ; initdb.php > /apps/zentao/unittestdb.spl ; /apps/zentao/test/ztest batchInit ;/apps/zentao/test/runtime/ztf /apps/zentao/module -C 11 | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php ; initdb.php /apps/zentao/unittest.sql' + sh 'apachectl start ; initdb.php > /apps/zentao/unittestdb.spl ; /apps/zentao/test/ztest batchInit ;/apps/zentao/test/runtime/ztf /apps/zentao/module -C 11 | tee /apps/zentao/test/${MIDDLE_IMAGE_TAG}.log ; parsehtml.php ; initdb.php /apps/zentao/unittestdb.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' }