jenkinsfile - watch screen test 2
This commit is contained in:
1 parent
95f3252318
commit
1ab150e135
1 file changed
+2
-2
@@ -68,12 +68,12 @@ pipeline {
|
|||||||
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
|
||||||
# Start test in detached screen
|
|
||||||
screen -dmS ${env.SCREEN_SESSION} bash -c '
|
|
||||||
usbreset ${params.BT_USB_ID}
|
usbreset ${params.BT_USB_ID}
|
||||||
sleep 5
|
sleep 5
|
||||||
cd /opt/ble-test/ble_api
|
cd /opt/ble-test/ble_api
|
||||||
git pull
|
git pull
|
||||||
|
# Start test in detached screen
|
||||||
|
screen -dmS ${env.SCREEN_SESSION} bash -c '
|
||||||
cd /opt/ble-test/ble_api/api
|
cd /opt/ble-test/ble_api/api
|
||||||
python3 -u ./ble.py ${params.test_count}
|
python3 -u ./ble.py ${params.test_count}
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in new issue
Block a user