Fix daisycloud-core to a specific tag 75/29475/1
authorZhijiang <hu.zhijiang@zte.com.cn>
Tue, 28 Feb 2017 11:18:39 +0000 (06:18 -0500)
committerZhijiang <hu.zhijiang@zte.com.cn>
Tue, 28 Feb 2017 11:18:39 +0000 (06:18 -0500)
Change-Id: Ife00fdc3409711f8d2de54f03a2a48f778761f80
Signed-off-by: Zhijiang <hu.zhijiang@zte.com.cn>
ci/build_rpm/build_rpms_docker.sh

index 4434157..bd0e087 100755 (executable)
@@ -14,6 +14,8 @@ rpm_build_dir=/opt/daisy4nfv
 rpm_output_dir=$rpm_build_dir/build_output
 tmp_rpm_build_dir=/home/cache/daisy4nfv
 
+DAISYCORE_TAG=1.3.0
+
 if [[ -d $tmp_rpm_build_dir ]]; then
     rm -fr $tmp_rpm_build_dir
 fi
@@ -35,6 +37,13 @@ do
     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
+    fi
+
     cp $rpm_build_dir/code/makefile_patch.sh daisycloud-core/tools/setup
     cp $rpm_build_dir/code/install_interface_patch.sh daisycloud-core/tools/setup
     cd daisycloud-core/make