提交 a36a7d68 编写于 作者: T tangfangzhi

correct syntax error

上级 057c7747
...@@ -201,30 +201,32 @@ pipeline { ...@@ -201,30 +201,32 @@ pipeline {
steps { steps {
timeout(time: 45, unit: 'MINUTES'){ timeout(time: 45, unit: 'MINUTES'){
pre_test() pre_test()
if (env.CHANGE_URL =~ /\/TDengine\//) { script {
sh ''' if (env.CHANGE_URL =~ /\/TDengine\//) {
cd ${WK}/debug sh '''
ctest -VV cd ${WK}/debug
''' ctest -VV
sh ''' '''
export LD_LIBRARY_PATH=${WK}/debug/build/lib sh '''
cd ${WKC}/tests/system-test export LD_LIBRARY_PATH=${WK}/debug/build/lib
./fulltest.sh cd ${WKC}/tests/system-test
''' ./fulltest.sh
} else if (env.CHANGE_URL =~ /\/TDinternal\//) { '''
sh ''' } else if (env.CHANGE_URL =~ /\/TDinternal\//) {
cd ${WKC}/debug sh '''
ctest -VV cd ${WKC}/debug
''' ctest -VV
sh ''' '''
export LD_LIBRARY_PATH=${WKC}/debug/build/lib sh '''
cd ${WKC}/tests/system-test export LD_LIBRARY_PATH=${WKC}/debug/build/lib
./fulltest.sh cd ${WKC}/tests/system-test
''' ./fulltest.sh
} else { '''
sh ''' } else {
echo "unmatched reposiotry ${CHANGE_URL}" sh '''
''' echo "unmatched reposiotry ${CHANGE_URL}"
'''
}
} }
sh ''' sh '''
cd ${WKC}/tests cd ${WKC}/tests
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册