Update jenkins-init-script to use global-jjb 08/11808/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 Jul 2018 15:03:22 +0000 (11:03 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 Jul 2018 15:07:34 +0000 (11:07 -0400)
Patch I68e242297db03752fcc415e5465e7bfa8ab66d79 in global-jjb added
support for a centralized jenkins-init-script. Update bootstrap
instructions to refer to that instead of having projects create their
own.

Change-Id: If7dc0eb8f972fd08de018228758e2fb6944bd392
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/_static/ciman/jenkins-init-script.sh.example

index ade7f75..b97979b 100644 (file)
@@ -1,4 +1,8 @@
 #!/bin/bash
-git clone https://gerrit.example.org/r/ci-management.git /ci-management
-/ci-management/jenkins-scripts/jenkins-init-script.sh
-rm -rf /ci-management
+until host gerrit.example.org &>/dev/null
+do
+    echo "Waiting until gerrit.example.org is resolvable..."
+done
+
+git clone --recurse-submodules https://gerrit.example.org/r/ci-management /opt/ciman
+/opt/ciman/jjb/global-jjb/jenkins-init-scripts/init.sh