jenkinsfile - watch screen test 6a revert
This commit is contained in:
1 parent
1c01c6339f
commit
7717386a75
1 file changed
+5
-11
@@ -77,23 +77,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
||||||
// tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||||
// done
|
done
|
||||||
stage('View Test Logs'){
|
stage('View Test Logs'){
|
||||||
steps {
|
steps {
|
||||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||||
sh """
|
sh """
|
||||||
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||||
while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
||||||
tail -f /tmp/ble_test_${env.TEST_HASH}.log |
|
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||||
while IFS= read -r line; do
|
done
|
||||||
echo "$line"
|
|
||||||
if ! screen -list | grep -q ble_test_${env.TEST_HASH}; then
|
|
||||||
break 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user