devops: build continuosly if needed
This commit is contained in:
parent
3866a00ad5
commit
d756f616f5
|
|
@ -32,6 +32,7 @@ fi
|
||||||
|
|
||||||
iteration=0
|
iteration=0
|
||||||
while true; do
|
while true; do
|
||||||
|
timestamp=$(date +%s)
|
||||||
iteration=$(( iteration + 1 ))
|
iteration=$(( iteration + 1 ))
|
||||||
echo "== ITERATION ${iteration} =="
|
echo "== ITERATION ${iteration} =="
|
||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
@ -39,5 +40,9 @@ while true; do
|
||||||
git pull origin master
|
git pull origin master
|
||||||
../checkout_build_archive_upload.sh firefox --win64
|
../checkout_build_archive_upload.sh firefox --win64
|
||||||
echo "------ Sleeping for 300 seconds before next turn... ------"
|
echo "------ Sleeping for 300 seconds before next turn... ------"
|
||||||
sleep 300
|
newTimestamp=$(date +%s)
|
||||||
|
delta=$(( 300 - newTimestamp + timestamp ));
|
||||||
|
if (( delta > 0 )); then
|
||||||
|
sleep detla;
|
||||||
|
fi
|
||||||
done;
|
done;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue