gitlab-ci.yml: Keep all possible logs in artifacts

Message ID 20240815035250.27682-1-ubely@ilbers.de
State Accepted, archived
Headers show
Series gitlab-ci.yml: Keep all possible logs in artifacts | expand

Commit Message

Uladzimir Bely Aug. 15, 2024, 3:52 a.m. UTC
This includes the following:

- Save build logs from all tmp*/ directories, considering those
renamed by the testsuite.
- Save qemu boot logs.

Having all this in artifacts should help to debug build/run failures.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Uladzimir Bely Aug. 19, 2024, 5:29 a.m. UTC | #1
On Thu, 2024-08-15 at 06:52 +0300, Uladzimir Bely wrote:
> This includes the following:
> 
> - Save build logs from all tmp*/ directories, considering those
> renamed by the testsuite.
> - Save qemu boot logs.
> 
> Having all this in artifacts should help to debug build/run failures.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  .gitlab-ci.yml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 7e28a234..ebc1e5a4 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -15,8 +15,9 @@ variables:
>    artifacts:
>      name: "logs-$CI_JOB_ID"
>      paths:
> -      - build/tmp/work/*/*/*/temp
> +      - build/tmp*/work/*/*/*/temp
>        - build/job-results
> +      - build/vm_start
>      reports:
>        junit:
>          - build/job-results/job*/results.xml
> -- 
> 2.44.2
> 

Applied to next.

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7e28a234..ebc1e5a4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,8 +15,9 @@  variables:
   artifacts:
     name: "logs-$CI_JOB_ID"
     paths:
-      - build/tmp/work/*/*/*/temp
+      - build/tmp*/work/*/*/*/temp
       - build/job-results
+      - build/vm_start
     reports:
       junit:
         - build/job-results/job*/results.xml