Index: build/build.sh =================================================================== diff -u -rccfcfd2a8c691b7bf481668f437ec321ab02420d -rb6ca0afad34e459b0700958b5f725d99f994a021 --- build/build.sh (.../build.sh) (revision ccfcfd2a8c691b7bf481668f437ec321ab02420d) +++ build/build.sh (.../build.sh) (revision b6ca0afad34e459b0700958b5f725d99f994a021) @@ -1,6 +1,7 @@ #!/bin/bash #setup environment +device=root@192.168.10.135 # project pro file pro_path=application pro_name=denali.pro @@ -14,6 +15,9 @@ pro_build=$pro_release out_path="build" +REMOTE_DIR="/media/XDrive/Users/Bamboo-Projects" +REPORT_DIR="$timeStamp-BuildNo-$buildNumber-$buildPlan" +REPORT=Report # gcc env gcc_qmake="/opt/Qt/5.12.4/gcc_64/bin/qmake" @@ -104,7 +108,8 @@ #run make build_err=../build.err -$poky_make -j4 2> $build_err +build_log=../build.log +$poky_make -j4 1> $build_log 2> $build_err if [[ $(grep "error:" $build_err) != "" ]]; then echo "ERROR: Application Build Failed" @@ -117,14 +122,17 @@ fi #copy built application into the specific target(s) -ssh root@192.168.10.135 'killall denali' -scp ./denali root@192.168.10.135://home/root/ -sync;sync;sync; -./denali & +ssh $device 'killall denali' +scp ./denali $device://home/root/;sync;sync;sync; +ssh $device './denali &' #return back to out path + cd .. #return back to main folder cd .. +#copy the out file into the server +cp $out_path/* $REMOTE_DIR/$REPORT_DIR;sync;sync;sync; +