aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/jenkins/scripts/pull-all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/jenkins/scripts/pull-all.sh')
-rwxr-xr-xbootstrap/jenkins/scripts/pull-all.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/bootstrap/jenkins/scripts/pull-all.sh b/bootstrap/jenkins/scripts/pull-all.sh
index cf6655ce7..6c2560f5c 100755
--- a/bootstrap/jenkins/scripts/pull-all.sh
+++ b/bootstrap/jenkins/scripts/pull-all.sh
@@ -1,8 +1,14 @@
-#!/bin/sh
+#!/bin/bash
while read p; do
- echo $p
- cd ~/Projects/onap/$p
- git fetch
- git reset --hard origin
- git clean -f -d -x
+ if [ ! -e $p ]; then
+ echo $p
+ git clone ssh://gerrit.onap.org:29418/$p $p
+ else
+ pushd $p > /dev/null
+ # git fetch
+ # git reset --hard origin
+ echo -ne "$p:\t"
+ git pull
+ popd > /dev/null
+ fi
done < projects.txt