ci: set test step in ci when tdgpt file changed
This commit is contained in:
parent
1aaf254ee8
commit
0755bf85e0
|
@ -467,9 +467,7 @@ pipeline {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
timeout(time: 126, unit: 'MINUTES'){
|
timeout(time: 126, unit: 'MINUTES'){
|
||||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||||
sh '''
|
|
||||||
echo "skip windows test because of tdgpt codes changed"
|
echo "skip windows test because of tdgpt codes changed"
|
||||||
'''
|
|
||||||
} else {
|
} else {
|
||||||
pre_test_win()
|
pre_test_win()
|
||||||
pre_test_build_win()
|
pre_test_build_win()
|
||||||
|
@ -484,6 +482,7 @@ pipeline {
|
||||||
stage('mac test') {
|
stage('mac test') {
|
||||||
agent{label " Mac_catalina "}
|
agent{label " Mac_catalina "}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
timeout(time: 60, unit: 'MINUTES'){
|
timeout(time: 60, unit: 'MINUTES'){
|
||||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||||
|
@ -496,6 +495,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('linux test') {
|
stage('linux test') {
|
||||||
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
|
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
|
||||||
options { skipDefaultCheckout() }
|
options { skipDefaultCheckout() }
|
||||||
|
|
Loading…
Reference in New Issue