X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fapex_build.sh;h=abeac7f9f3fcd1e8ff19ebcde0a874df5d040222;hb=053855503b272bb3df55670be40c8eb6c0c41c3b;hp=8e57ac847d80e6932ac0434bd0e176cb292912c4;hpb=59ee691ba40e67e4975e0eaf768efb6df286ed3c;p=kvmfornfv.git diff --git a/ci/apex_build.sh b/ci/apex_build.sh index 8e57ac847..abeac7f9f 100755 --- a/ci/apex_build.sh +++ b/ci/apex_build.sh @@ -5,11 +5,12 @@ build_dir=/opt/kvmfornfv/ mkdir -p /tmp/kvmfornfv SRC=/tmp/kvmfornfv source ${build_dir}/ci/apex.conf +#Cloning into /tmp/kvmfornfv cd $SRC -#Cloning into /tmp/kvmfornfv from local repository -git clone $build_dir $SRC -if [ "$branch" == "master" ] || [ "$branch" == "danube" ];then - echo "Checking out on $branch branch" +if [[ "$branch" == "master" ]] || [[ "$branch" == *"danube"* ]];then + echo "Cloning the repository of $branch given" + git clone -b $branch https://gerrit.opnfv.org/gerrit/kvmfornfv.git /tmp/kvmfornfv + git branch echo "Commit-id is ${commit_id}" git checkout -f ${commit_id} if [ $? -ne 0 ];then