Jenkinsfile: grouping sh commands in blocks
This commit is contained in:
parent
93ab8b9d87
commit
c779b364e8
|
@ -129,35 +129,41 @@ pipeline
|
||||||
unstash name: 'ubuntu_examples'
|
unstash name: 'ubuntu_examples'
|
||||||
sh 'tar -xvzf Dist/CARLA*.tar.gz -C Dist/'
|
sh 'tar -xvzf Dist/CARLA*.tar.gz -C Dist/'
|
||||||
|
|
||||||
sh 'DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &'
|
sh '''
|
||||||
sh 'SCRIPT_PID=$!'
|
DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &
|
||||||
sh 'sleep 5'
|
SCRIPT_PID=$!
|
||||||
sh 'CARLA_PID=`pgrep -P ${SCRIPT_PID}`'
|
echo ${SCRIPT_PID}
|
||||||
sh 'echo "Carla Port"'
|
sleep 5
|
||||||
sh 'echo ${CARLA_PID}'
|
CARLA_PID=`pgrep -P ${SCRIPT_PID}`
|
||||||
sh 'make smoke_tests ARGS="--xml --python-version=3.7"'
|
echo ${CARLA_PID}
|
||||||
sh 'kill $CARLA_PID'
|
make smoke_tests ARGS="--xml --python-version=3.7"
|
||||||
sh 'sleep 5'
|
kill $CARLA_PID
|
||||||
|
sleep 5
|
||||||
|
'''
|
||||||
|
|
||||||
sh 'DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &'
|
sh '''
|
||||||
sh 'SCRIPT_PID=$!'
|
DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &
|
||||||
sh 'sleep 5'
|
SCRIPT_PID=$!
|
||||||
sh 'CARLA_PID=`pgrep -P ${SCRIPT_PID}`'
|
echo ${SCRIPT_PID}
|
||||||
sh 'echo "Carla Port"'
|
sleep 5
|
||||||
sh 'echo ${CARLA_PID}'
|
CARLA_PID=`pgrep -P ${SCRIPT_PID}`
|
||||||
sh 'make smoke_tests ARGS="--xml --python-version=2"'
|
echo ${CARLA_PID}
|
||||||
sh 'kill $CARLA_PID'
|
make smoke_tests ARGS="--xml --python-version=2"
|
||||||
sh 'sleep 5'
|
kill $CARLA_PID
|
||||||
|
sleep 5
|
||||||
|
'''
|
||||||
|
|
||||||
sh 'DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &'
|
sh '''
|
||||||
sh 'SCRIPT_PID=$!'
|
DISPLAY= ./Dist/CarlaUE4.sh -RenderOffScreen --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &
|
||||||
sh 'sleep 10'
|
SCRIPT_PID=$!
|
||||||
sh 'CARLA_PID=`pgrep -P ${SCRIPT_PID}`'
|
echo ${SCRIPT_PID}
|
||||||
sh 'echo "Carla Port"'
|
sleep 5
|
||||||
sh 'echo ${CARLA_PID}'
|
CARLA_PID=`pgrep -P ${SCRIPT_PID}`
|
||||||
sh 'make run-examples ARGS="localhost 3654"'
|
echo ${CARLA_PID}
|
||||||
sh 'kill $CARLA_PID'
|
make run-examples ARGS="localhost 3654
|
||||||
sh 'sleep 2'
|
kill $CARLA_PID
|
||||||
|
sleep 5
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
post
|
post
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue