Index: build/build.sh =================================================================== diff -u -r8fd222d29cda75ad0f7ea9ab7956deecb19473f1 -re14be295cb3a37e35e39c7bb4f043841d3321fb4 --- build/build.sh (.../build.sh) (revision 8fd222d29cda75ad0f7ea9ab7956deecb19473f1) +++ build/build.sh (.../build.sh) (revision e14be295cb3a37e35e39c7bb4f043841d3321fb4) @@ -18,7 +18,6 @@ REMOTE_DIR="/media/XDrive/Users/Bamboo-Projects" REPORT_DIR="$timeStamp-BuildNo-$buildNumber-$buildPlan" REPORT=Report -LOG=log # gcc env gcc_qmake="/opt/Qt/5.12.4/gcc_64/bin/qmake" @@ -80,8 +79,8 @@ -I$app_path/sources/configuration \ -I$app_path/sources/canbus \ --enable=all \ - 1> $LOG/cppcheck.log \ - 2> $LOG/cppcheck.err + 1> cppcheck.log \ + 2> cppcheck.err if [[ $(grep \(error\) cppcheck.err) != "" ]]; then echo "ERROR: Static Code Analysis Failed" @@ -112,8 +111,8 @@ $poky_qmake ../../$pro_path/$pro_name $poky_spec $pro_build #run make -build_err=../$LOG/build.err -build_log=../$LOG/build.log +build_err=../build.err +build_log=../build.log $poky_make -j4 1> $build_log 2> $build_err if [[ $(grep "error:" $build_err) != "" ]]; then @@ -140,7 +139,8 @@ cd .. #copy the out file into the server -cp $out_path/$LOG/* $REMOTE_DIR/$REPORT_DIR +mkdir -p $REMOTE_DIR/$REPORT_DIR/log +cp $out_path/* $REMOTE_DIR/$REPORT_DIR/log mkdir -p $REMOTE_DIR/$REPORT_DIR/bin cp $out_path/$poky_out/denali $REMOTE_DIR/$REPORT_DIR/bin sync;sync;sync;