summaryrefslogtreecommitdiffstats
path: root/ci/apex_build.sh
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-03-23 16:10:04 +0530
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-04-04 11:27:54 +0000
commit6cd1a71456bc1ae7f84571c5944fa250989fd110 (patch)
treef410a3f2ed170e74ea11a304ba25fe70b25adb10 /ci/apex_build.sh
parent7d8bfd26b45b511898825a24ecf0977a336fac13 (diff)
This patch includes scripts to enhance the apex build support feature
for generating kernel rpms based on the branch provided in apex.conf Change-Id: I197ff3f9a51b3b34b31d0b9a3628610f7f915011 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'ci/apex_build.sh')
-rwxr-xr-xci/apex_build.sh9
1 files changed, 5 insertions, 4 deletions
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