summaryrefslogtreecommitdiffstats
path: root/bootstrap/jenkins/scripts/clone-all.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-06-21 14:37:43 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-06-21 14:37:43 -0700
commit3655edcc82d62f5acd545391255fb43a89058f4e (patch)
tree4d2685afbb9589ebee77037a4f9ec403ede13ec6 /bootstrap/jenkins/scripts/clone-all.sh
parent89ce3216514b002b725777d132df144b3838e42d (diff)
Update pull-all.sh to not clean the repos
Change-Id: I784873b8137075bb08dfb856caafb7f3a143f454 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'bootstrap/jenkins/scripts/clone-all.sh')
-rwxr-xr-xbootstrap/jenkins/scripts/clone-all.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap/jenkins/scripts/clone-all.sh b/bootstrap/jenkins/scripts/clone-all.sh
index 6bdb68a09..77a6cafdc 100755
--- a/bootstrap/jenkins/scripts/clone-all.sh
+++ b/bootstrap/jenkins/scripts/clone-all.sh
@@ -1,5 +1,7 @@
#!/bin/sh
while read p; do
- echo $p
- git clone ssh://gerrit.onap.org:29418/$p $p
+ if [ ! -e $p ]; then
+ echo $p
+ git clone ssh://gerrit.onap.org:29418/$p $p
+ fi
done < projects.txt