ci: set test step in ci when tdgpt file changed

This commit is contained in:
chenhaoran 2024-11-25 17:16:58 +08:00
parent 6e394c634e
commit 6159a06ee7
1 changed files with 13 additions and 12 deletions

View File

@ -476,6 +476,7 @@ pipeline {
}
}
}
}
stage('mac test') {
agent{label " Mac_catalina "}
steps {
@ -490,6 +491,7 @@ pipeline {
}
}
}
}
stage('linux test') {
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
options { skipDefaultCheckout() }
@ -557,7 +559,7 @@ pipeline {
./run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WKDIR}/tmp/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + '''
'''
if ( file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/ ) {
] sh '''
sh '''
cd ${WKC}/tests/parallel_test
export DEFAULT_RETRY_TIME=2
date
@ -571,7 +573,6 @@ pipeline {
''' + timeout_cmd + ''' time ./run.sh -e -m /home/m.json -t cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 1200 ''' + extra_param + '''
'''
}
}
}
}