ci: set test step in ci when tdgpt file changed
This commit is contained in:
parent
1aaf254ee8
commit
0755bf85e0
20
Jenkinsfile2
20
Jenkinsfile2
|
@ -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,13 +482,15 @@ pipeline {
|
||||||
stage('mac test') {
|
stage('mac test') {
|
||||||
agent{label " Mac_catalina "}
|
agent{label " Mac_catalina "}
|
||||||
steps {
|
steps {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
script {
|
||||||
timeout(time: 60, unit: 'MINUTES'){
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
timeout(time: 60, unit: 'MINUTES'){
|
||||||
echo "skip mac test because of tdgpt codes changed"
|
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
|
||||||
} else {
|
echo "skip mac test because of tdgpt codes changed"
|
||||||
pre_test()
|
} else {
|
||||||
pre_test_build_mac()
|
pre_test()
|
||||||
|
pre_test_build_mac()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue