]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Send email after the upload was successful
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Feb 2020 17:01:24 +0000 (17:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Feb 2020 17:01:24 +0000 (17:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index 4afedbc92f43138f598be8bc369cfb5728da631c..606778b225efc11718d5d770c2a9fb07b1e935a1 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -162,14 +162,14 @@ build() {
                fi
                mv -v log/ "${build}"
 
-               # 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
+
+               # Send an email notification
+               send_email "${status}" "${target}" "${branch}" "${commit_new}" "${build}"
        done
 
        popd