jenkinsfile - watch screen test 3a
This commit is contained in:
1 parent
117a28b62b
commit
1e7bb44017
1 file changed
+2
-2
@@ -73,7 +73,7 @@ pipeline {
|
||||
cd /opt/ble-test/ble_api
|
||||
git pull
|
||||
cd /opt/ble-test/ble_api/api
|
||||
screen -dmS test bash -c "cd /opt/ble-test/ble_api/api && python3 -u ./ble.py ${params.test_count} | tee /tmp/ble_test_${env.TEST_HASH}.log"
|
||||
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"
|
||||
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||
"""
|
||||
}
|
||||
@@ -92,7 +92,7 @@ pipeline {
|
||||
sh """
|
||||
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||
if screen -list | grep -q ${env.TEST_HASH}; then
|
||||
screen -S ${env.TEST_HASH} -X quit
|
||||
screen -S ble_test_${env.TEST_HASH} -X quit
|
||||
fi
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user