[gimp/wip/Jehan/incremental-win-installer-improvements: 7/7] gitlab-ci: redirect installer logs to a file.




commit 226594c2cc74def32ff01ec970c91de28dea70e0
Author: Jehan <jehan girinstud io>
Date:   Sat May 22 16:55:04 2021 +0200

    gitlab-ci: redirect installer logs to a file.
    
    The logs are just too long for gitlab and ends with:
    
    > Job's log exceeded limit of 4194304 bytes.
    
    This doesn't prevent the job from actually finish successfully. Yet the
    day when we will have a build issue, we won't have a way to debug if it
    happens close to the end of the installer creation. So let's redirect
    both stderr and stdout to a log file and include it in the artifacts.

 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f9cf811283..19397c7d55 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -582,9 +582,10 @@ win-installer-nightly:
     expire_in: 2 days
     paths:
     - build/windows/installer/_Output
+    - installer.log
   script:
     - C:\msys64\usr\bin\pacman --noconfirm -Syyuu
-    - C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/installer-gimp-msys2.sh"
+    - C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/installer-gimp-msys2.sh > installer.log 
2>&1"
   needs: ["packaging-win32-native", "packaging-win64-native"]
 
 sources:


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