Skip to content

Commit

Permalink
Default timeout value in _gazebo_utils (#1002)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Sep 1, 2023
1 parent f691cbd commit 78cfa9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins-scripts/docker/lib/_gazebo_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ cd build-deps
# nightlies uploads.
update_done=false
seconds_waiting=0
timeout=\${timeout:-0}
while (! \$update_done); do
sudo DEBIAN_FRONTEND=noninteractive mk-build-deps \
-r -i ../debian/control \
--tool 'apt-get --yes -o Debug::pkgProblemResolver=yes -o Debug::BuildDeps=yes' \
&& break
sleep 60 && seconds_waiting=\$((seconds_waiting+60))
apt-get update
[ \$seconds_waiting -ge \$timeout ] && exit 1
done
cd ..
Expand Down

0 comments on commit 78cfa9e

Please sign in to comment.