ci: drop sync windows test with linux
This commit is contained in:
parent
8171e3264c
commit
f7b1960725
36
Jenkinsfile2
36
Jenkinsfile2
|
@ -4,11 +4,6 @@ import jenkins.model.CauseOfInterruption
|
||||||
node {
|
node {
|
||||||
}
|
}
|
||||||
|
|
||||||
win_test_stage = 0
|
|
||||||
linux_ready = 0
|
|
||||||
linux_node_ip = ""
|
|
||||||
linux_node_pass = ""
|
|
||||||
|
|
||||||
def abortPreviousBuilds() {
|
def abortPreviousBuilds() {
|
||||||
def currentJobName = env.JOB_NAME
|
def currentJobName = env.JOB_NAME
|
||||||
def currentBuildNumber = env.BUILD_NUMBER.toInteger()
|
def currentBuildNumber = env.BUILD_NUMBER.toInteger()
|
||||||
|
@ -289,7 +284,6 @@ def run_win_ctest() {
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
def run_win_test() {
|
def run_win_test() {
|
||||||
echo "LINUX NODE: ${linux_node_ip} - ${linux_node_pass}"
|
|
||||||
bat '''
|
bat '''
|
||||||
echo "windows test ..."
|
echo "windows test ..."
|
||||||
cd %WIN_CONNECTOR_ROOT%
|
cd %WIN_CONNECTOR_ROOT%
|
||||||
|
@ -298,9 +292,8 @@ def run_win_test() {
|
||||||
ls -l C:\\Windows\\System32\\taos.dll
|
ls -l C:\\Windows\\System32\\taos.dll
|
||||||
time /t
|
time /t
|
||||||
cd %WIN_SYSTEM_TEST_ROOT%
|
cd %WIN_SYSTEM_TEST_ROOT%
|
||||||
echo "node: ''' + linux_node_ip + ''':''' + linux_node_pass + '''"
|
|
||||||
echo "testing ..."
|
echo "testing ..."
|
||||||
test-all.bat "{\\\"host\\\":\\\"''' + linux_node_ip + '''\\\",\\\"port\\\":22,\\\"user\\\":\\\"root\\\",\\\"password\\\":\\\"''' + linux_node_pass + '''\\\",\\\"path\\\":\\\"/var/lib/jenkins/workspace/TDinternal\\\"}"
|
test-all.bat
|
||||||
time /t
|
time /t
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
@ -331,17 +324,9 @@ pipeline {
|
||||||
pre_test_win()
|
pre_test_win()
|
||||||
pre_test_build_win()
|
pre_test_build_win()
|
||||||
run_win_ctest()
|
run_win_ctest()
|
||||||
script {
|
|
||||||
while(linux_ready == 0) {
|
|
||||||
sleep(8)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
run_win_test()
|
run_win_test()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
script {
|
|
||||||
win_test_stage = 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('linux test') {
|
stage('linux test') {
|
||||||
|
@ -351,17 +336,6 @@ pipeline {
|
||||||
changeRequest()
|
changeRequest()
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
linux_node_ip = sh (
|
|
||||||
script: 'jq .ip /home/node_info.json | sed "s/\\\"//g"',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
linux_node_pass = sh (
|
|
||||||
script: 'jq .password /home/node_info.json | sed "s/\\\"//g" |sed "s/\\!/^^^^^^^^\\!/g"',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
echo "${linux_node_ip}:${linux_node_pass}"
|
|
||||||
}
|
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
timeout(time: 120, unit: 'MINUTES'){
|
timeout(time: 120, unit: 'MINUTES'){
|
||||||
pre_test()
|
pre_test()
|
||||||
|
@ -442,14 +416,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
script {
|
|
||||||
linux_ready = 1
|
|
||||||
}
|
|
||||||
script {
|
|
||||||
while(win_test_stage == 0){
|
|
||||||
sleep(12)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue