From 156b3d992a4acf6dd47d1c4847346ef1ccd2b937 Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Fri, 2 Aug 2024 13:22:10 +0800 Subject: [PATCH] test: scan returned values in ci --- Jenkinsfile2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 8d4652943d..de96a23d51 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -419,8 +419,8 @@ pipeline { pre_test() script { sh ''' - mkdir -p ${WK}/../log/${BRANCH_NAME}_${BUILD_ID} - echo "''' + env.FILE_CHANGED + '''" > ${WK}/../log/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt + mkdir -p ${WKDIR}/tmp/${BRANCH_NAME}_${BUILD_ID} + echo "''' + env.FILE_CHANGED + '''" > ${WKDIR}/tmp/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' sh ''' date @@ -455,7 +455,7 @@ pipeline { } sh ''' cd ${WKC}/tests/parallel_test - ./run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WK}/../log/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + ''' + ./run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WKDIR}/tmp/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + ''' ''' sh ''' cd ${WKC}/tests/parallel_test