From: madavi Date: Thu, 25 Jul 2019 06:02:57 +0000 (+0530) Subject: bug 542 improvment to the code, license scan X-Git-Tag: v7.0.0rc1~79 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7273dfbd2fc018915a5f68baf52dbfe86a8e0acb;p=osm%2Fdevops.git bug 542 improvment to the code, license scan Change-Id: Ia2c8da12c8ea8e99510b9bb8a8d4d2624b68b0ec Signed-off-by: madavi --- diff --git a/tools/license_scan.sh b/tools/license_scan.sh index f7a4ab7e..2c5fb4a7 100755 --- a/tools/license_scan.sh +++ b/tools/license_scan.sh @@ -17,7 +17,8 @@ # Change log: # 1. Bug 722 : Jayant Madavi : JM00553988@techmahindra.com : Enhancement to use new fossology server. Had to change the variable name at # couple of places, while scanning the variable name was adding curl as a license. -# 2. +# 2. Bug 542 : Jayant Madavi, Mrityunjay Yadav : JM00553988@techmahindra.com : 24-jul-2019 : Enhancement to raise exit in case files modified or added does # not contain license. +# 3. echo GERRIT BRANCH is $GERRIT_BRANCH dpkg -l wget &>/dev/null ||sudo apt-get install -y wget @@ -74,7 +75,8 @@ if [ $other -gt 0 ]; then fi if [ $nolicense -gt 0 ]; then - echo "WARNING: Unlicensed files found" + echo "FATAL: Unlicensed files found" + exit 2 fi exit 0