diff options
author | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2017-04-25 03:22:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-04-25 03:22:03 +0000 |
commit | 3265b49f45d31d0e83e25aa61c0c22a19b44c4bf (patch) | |
tree | 487065efda43a3d838f3a28bdec846245180aae8 /ci | |
parent | a3ef3c57cf4b6dde928896b6ea39c864490042f1 (diff) | |
parent | c0a6052050c3e06099dcf2530a0244a40f09c6d7 (diff) |
Merge "ignore the git history in daisy building job"
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build_rpm/build_rpms_docker.sh | 9 |
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 |