correct syntax error
This commit is contained in:
parent
057c7747bc
commit
a36a7d68a7
50
Jenkinsfile2
50
Jenkinsfile2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue