[citemplates] flatpak: move purge of build publish to the after_script



commit 2d93f05661208c1e312273d49626217aca2b4b9b
Author: Jordan Petridis <jpetridis gnome org>
Date:   Wed Jul 1 19:34:02 2020 +0300

    flatpak: move purge of build publish to the after_script
    
    This is guaranteed to be run even if the job times out
    waiting on push.

 flatpak/flatpak_ci_initiative.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/flatpak/flatpak_ci_initiative.yml b/flatpak/flatpak_ci_initiative.yml
index 393b3c9..49e4039 100644
--- a/flatpak/flatpak_ci_initiative.yml
+++ b/flatpak/flatpak_ci_initiative.yml
@@ -70,9 +70,9 @@
     - tar xf repo.tar
     - flatpak build-update-repo --generate-static-deltas repo/
     - BUILD_ID=$(flat-manager-client create ${FLAT_MANAGER_URL} ${FLATPAK_REPO})
-    - flat-manager-client push --commit --publish --wait ${BUILD_ID} repo/ || result=$?
+    - flat-manager-client push --commit --publish --wait ${BUILD_ID} repo/
+  after_script:
     - flat-manager-client purge ${BUILD_ID}
-    - exit $result
   variables:
     FLAT_MANAGER_URL: https://nightly.gnome.org/
     FLATPAK_REPO: nightly


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]