for generating kernel rpms based on the branch provided in apex.conf
Change-Id: I197ff3f9a51b3b34b31d0b9a3628610f7f915011
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
glib2-devel \
make \
gettext \
glib2-devel \
make \
gettext \
-branch=master
-commit_id=e1a58e17cf85b14c61c2389588ed7bf5da88fd53
+branch=stable/danube
+commit_id=977317100f3b52caafb091ad5924e5dd81982433
mkdir -p /tmp/kvmfornfv
SRC=/tmp/kvmfornfv
source ${build_dir}/ci/apex.conf
mkdir -p /tmp/kvmfornfv
SRC=/tmp/kvmfornfv
source ${build_dir}/ci/apex.conf
+#Cloning into /tmp/kvmfornfv
-#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
echo "Commit-id is ${commit_id}"
git checkout -f ${commit_id}
if [ $? -ne 0 ];then