summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-04-25 10:02:49 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-04-25 10:02:49 +0800
commitc0a6052050c3e06099dcf2530a0244a40f09c6d7 (patch)
tree654aa9c3ecbe6f4a91c611bfdef408cec39e40ae
parent17db096d1bbbaabd30add632fc91e4e48afc990f (diff)
ignore the git history in daisy building job
Now the daisycloud-core is a big repo because there are some big files in the git history. Use "--depth 1" to reduce the amount to download. Change-Id: I8ce0dc6675d2239a126bcf558300f1ad45cd3fb3 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rwxr-xr-xci/build_rpm/build_rpms_docker.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/ci/build_rpm/build_rpms_docker.sh b/ci/build_rpm/build_rpms_docker.sh
index caeb005b..b005a243 100755
--- a/ci/build_rpm/build_rpms_docker.sh
+++ b/ci/build_rpm/build_rpms_docker.sh
@@ -14,6 +14,7 @@ rpm_build_dir=/opt/daisy4nfv
rpm_output_dir=$rpm_build_dir/build_output
tmp_rpm_build_dir=/home/cache/daisy4nfv
+DAISYCORE_REPO="https://git.openstack.org/openstack/daisycloud-core"
DAISYCORE_TAG=
if [[ -d $tmp_rpm_build_dir ]]; then
@@ -36,12 +37,10 @@ do
cnt=$[cnt + 1]
echo -e "\n\n\n*** Starting build attempt # $cnt"
- git clone https://git.openstack.org/openstack/daisycloud-core
-
if [[ ! -z "$DAISYCORE_TAG" ]]; then
- pushd daisycloud-core
- git checkout $DAISYCORE_TAG
- popd
+ git clone $DAISYCORE_REPO --branch $DAISYCORE_TAG --depth 1
+ else
+ git clone $DAISYCORE_REPO --depth 1
fi
cp $rpm_build_dir/code/makefile_patch.sh daisycloud-core/tools/setup