]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Send email before syncing
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Apr 2020 12:51:24 +0000 (12:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Apr 2020 12:51:24 +0000 (12:51 +0000)
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>
build.sh

index 81b54cddff4dc2e79730b75fcebd38a27e6ce859..d7f97c1a9b30f4fcf7b1cad7a25e52d52b81e487 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -166,14 +166,14 @@ build() {
        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
 }