The sync() command deletes everything which is why we do not
have a logfile that we can attach to the email.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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
}