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.
This commit is contained in:
Jehan 2021-05-22 16:55:04 +02:00
parent 35ef549028
commit 7a4f0a6f2b
1 changed files with 2 additions and 1 deletions

View File

@ -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: