ㅅㄷㄴㅅ

This commit is contained in:
leedongmyung[desktop] 2023-11-05 07:58:30 +09:00
parent 7328ee20bd
commit 0c81830e1a

View file

@ -0,0 +1,32 @@
echo $PATH
echo "Current workspace: ${PWD}"
#cd ../dart_framework && git pull origin master
#cd ../${JOB_NAME}
#bash ./assets/script/shell/check_rev.sh
## 현재 리비전 체크
REV_OLD=`cat git_rev.txt`
git rev-list --all HEAD --all --count > git_rev.txt
REV_NEW=`cat git_rev.txt`
echo "$REV_OLD"
echo "$REV_NEW"
RESULT=FALSE
if [ ${REV_OLD} -ne ${REV_NEW} ] ; then
RESULT=TRUE
fi
#echo $RESULT > result.txt
#RESULT=$(head -n 1 result.txt)
if [ ${RESULT} == "TRUE" ] ; then
echo "Build Start!"
flutter clean
flutter packages upgrade
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
echo "Build End!"
fi