jenkinsfile - watch screen test 5 put tail in a loop
This commit is contained in:
1 parent
55e6991786
commit
3111e45fda
1 file changed
+3
-1
@@ -73,7 +73,9 @@ pipeline {
|
||||
cd /opt/ble-test/ble_api/api
|
||||
screen -dmS ble_test_${env.TEST_HASH} bash -c "cd /opt/ble-test/ble_api/api && python3 -u ./ble.py ${params.test_count} | tee /tmp/ble_test_${env.TEST_HASH}.log"
|
||||
sleep 2
|
||||
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||
while screen -list | grep -q ble_test_${env.TEST_HASH}; do
|
||||
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||
done
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user