summaryrefslogtreecommitdiffstats
path: root/ci/build.sh
diff options
context:
space:
mode:
authorNavya <navyax.bathula@intel.com>2017-04-10 19:03:58 +0530
committerNavya Bathula <navyax.bathula@intel.com>2017-05-15 04:44:00 +0000
commit2fde080c8c418c0474b285b823e9d7f2346f05a3 (patch)
tree795fcffdeaf3ac734adb19d324dd0739c00e251c /ci/build.sh
parent39928e5e9503db6f1971c74a84e3d10a4e4f6a6e (diff)
To generate debug rpm and debian package for kvmfornfv kernel
This patch is used to strip the debug information from binary files and generate separate debug package along with binary package while building the kernel.The debuginfo package is uploaded only for daily job. Upstream status: Pending Change-Id: Iad2cfd8e252d218a9d603e9dbed2aa557d83e263 Co-Authored by:shravani paladugula <shravani.p@tcs.com> Signed-off-by: Navya Bathula <navyax.bathula@intel.com>
Diffstat (limited to 'ci/build.sh')
-rwxr-xr-xci/build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/ci/build.sh b/ci/build.sh
index ef06a716c..a52055940 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -119,6 +119,8 @@ then
output_dir=$WORKSPACE/build_output
fi
+job_type=`echo $JOB_NAME | cut -d '-' -f 2`
+
echo ""
echo "Building for $type package in $output_dir"
echo ""
@@ -139,3 +141,18 @@ if [ ${apex_build_flag} -eq 1 ];then
variable=`ls kvmfornfv-* | grep "devel" | awk -F "_" '{print $3}' | awk -F "." '{print $1}'`
rename "s/${variable}/centos/" kvmfornfv-*
fi
+
+# Uploading rpms only for daily job
+if [ $job_type == "verify" ]; then
+ if [ $type == "centos" ]; then
+ echo "Removing kernel-debuginfo rpm from output_dir"
+ rm -f ${output_dir}/kernel-debug*
+ echo "Checking packages in output_dir"
+ ls -lrth ${output_dir}
+ else
+ echo "Removing debug debian from output_dir"
+ rm -f ${output_dir}/*dbg*
+ echo "Checking packages in output_dir"
+ ls -lrth ${output_dir}
+ fi
+fi \ No newline at end of file