Index: build/build.sh =================================================================== diff -u -rd924817447f19d70e66ef498ebc76baa41f4a18f -r5a12cf93b594dd96d122f913eb1b4ab0c3d5aad6 --- build/build.sh (.../build.sh) (revision d924817447f19d70e66ef498ebc76baa41f4a18f) +++ build/build.sh (.../build.sh) (revision 5a12cf93b594dd96d122f913eb1b4ab0c3d5aad6) @@ -47,20 +47,10 @@ hasTestPassed=true setBuildVariables ${buildSpecs[@]} -# If the build is standalone for the branches that unit test and integration tests are not needed, -# then the unit test script was not called and the build only flag was set. Otherwise, the status -# report has already been created and commit hashes have already been written to the status report. -if [[ ${buildSpecs[$BUILD_ONLY_FLAG_INDEX]} == true ]] -then - REMOTE_DIR=$(getRemoteCopyAddress "DEN_UI" ${buildSpecs[$PROJECT_CHECKOUT_INDEX]}) - STATUS_REPORT=$(createStatusReport "application" $REMOTE_DIR $isBuildLocal) - getCommitHashes $STATUS_REPORT ${buildSpecs[$PROJECT_NAME_INDEX]} ${buildSpecs[$PROJECT_CHECKOUT_INDEX]} \ - ${buildSpecs[$COMMON_CHECKOUT_INDEX]} -else - REMOTE_DIR=$(getRemoteCopyAddress "DEN_UI" ${buildSpecs[$PROJECT_CHECKOUT_INDEX]}) - local fileName=$(find $reportAddress -maxdepth 1 -name \*"Build_Report"\*.csv) - STATUS_REPORT=$REMOTE_DIR/$fileName -fi +# Retrieve the status report +REMOTE_DIR=$(getRemoteCopyAddress "DEN_UI" ${buildSpecs[$PROJECT_CHECKOUT_INDEX]}) +local fileName=$(find $reportAddress -maxdepth 1 -name \*"Build_Report"\*.csv) +STATUS_REPORT=$REMOTE_DIR/$fileName # Get the build variables buildVariables=($(getUIBuildValues)) @@ -353,8 +343,12 @@ # Leave the sub workspace cd .. -# Generate code review project -getCodeReviewReport "UI" ${buildSpecs[$PROJECT_CHECKOUT_INDEX]} ${buildSpecs[$COMMON_CHECKOUT_INDEX]} $REMOTE_DIR +# If this is a build only build, it is informal and it does not need code review report +if [[ ${buildSpecs[$BUILD_ONLY_FLAG_INDEX]} == true ]] +then + # Generate code review project + getCodeReviewReport "UI" ${buildSpecs[$PROJECT_CHECKOUT_INDEX]} ${buildSpecs[$COMMON_CHECKOUT_INDEX]} $REMOTE_DIR +fi # Mark pass/fail to the build folder markRemoteFolderWithPassFail $hasTestPassed $REMOTE_DIR