[tbb-commits] [builders/tor-browser-build] 02/09: Bug 40476: Add wait-for-finished-build

gitolite role git at cupani.torproject.org
Mon May 9 18:49:21 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch master
in repository builders/tor-browser-build.

commit 1345e0ebb03ef2bd78481effd8f2c0600e3b2107
Author: Nicolas Vigier <boklm at torproject.org>
AuthorDate: Fri Apr 1 13:49:14 2022 +0200

    Bug 40476: Add wait-for-finished-build
---
 tools/signing/wait-for-finished-build | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/tools/signing/wait-for-finished-build b/tools/signing/wait-for-finished-build
new file mode 100755
index 0000000..44dbf81
--- /dev/null
+++ b/tools/signing/wait-for-finished-build
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# This script will wait until a build is finished on ssh_host_builder.
+#
+# You can use this to start downloading a build immediately after it
+# finished with something like:
+#  $ ./wait-for-finished-build && ./sync-builder-unsigned-to-local-signed
+#
+set -e
+script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+source "$script_dir/functions"
+
+var_is_defined ssh_host_builder builder_tor_browser_build_dir
+
+while true
+do
+  ssh "$ssh_host_builder" test -f "$builder_tor_browser_build_dir/$tbb_version_type/unsigned/$tbb_version-build$tbb_version_build/sha256sums-unsigned-build.incrementals.txt" && \
+    exit 0
+  echo "$(date -Iseconds): Waiting for build to finish..."
+  sleep 5m
+done

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list