fi
mv -v log/ "${build}"
- # Upload the result
- sync
+ # Cleanup the build environment
+ ./make.sh --target="${target}" clean
# Send an email notification
send_email "${status}" "${target}" "${branch}" "${commit_new}" "${build}"
- # Cleanup the build environment
- ./make.sh --target="${target}" clean
+ # Upload the result
+ sync
popd
}