ci: set test step in ci when tdgpt file changed
This commit is contained in:
parent
5538900b87
commit
6e394c634e
18
Jenkinsfile2
18
Jenkinsfile2
|
@ -465,6 +465,9 @@ pipeline {
|
|||
steps {
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
timeout(time: 126, unit: 'MINUTES'){
|
||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||
echo "skip windows test because of forecastoperator.c or anomalywindowoperator.c"
|
||||
} else {
|
||||
pre_test_win()
|
||||
pre_test_build_win()
|
||||
run_win_ctest()
|
||||
|
@ -478,6 +481,9 @@ pipeline {
|
|||
steps {
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
timeout(time: 60, unit: 'MINUTES'){
|
||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||
echo "skip mac test because of forecastoperator.c or anomalywindowoperator.c"
|
||||
} else {
|
||||
pre_test()
|
||||
pre_test_build_mac()
|
||||
}
|
||||
|
@ -550,12 +556,22 @@ pipeline {
|
|||
cd ${WKC}/tests/parallel_test
|
||||
./run_scan_container.sh -d ${WKDIR} -b ${BRANCH_NAME}_${BUILD_ID} -f ${WKDIR}/tmp/${BRANCH_NAME}_${BUILD_ID}/docs_changed.txt ''' + extra_param + '''
|
||||
'''
|
||||
sh '''
|
||||
if ( file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||
] sh '''
|
||||
cd ${WKC}/tests/parallel_test
|
||||
export DEFAULT_RETRY_TIME=2
|
||||
date
|
||||
''' + timeout_cmd + ''' time ./run.sh -e -m /home/m.json -t tdgpt_cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 1200 ''' + extra_param + '''
|
||||
'''
|
||||
} else {
|
||||
sh '''
|
||||
cd ${WKC}/tests/parallel_test
|
||||
export DEFAULT_RETRY_TIME=2
|
||||
date
|
||||
''' + 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 + '''
|
||||
'''
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#Column Define
|
||||
#caseID,rerunTimes,Run with Sanitizer,casePath,caseCommand
|
||||
#NA,NA,y or n,script,./test.sh -f tsim/user/basic.sim
|
||||
|
||||
#tdgpt-test
|
||||
,,y,script,./test.sh -f tsim/query/timeline.sim
|
Loading…
Reference in New Issue