Skip to content

Commit

Permalink
feature(pipelines): collect builders logs
Browse files Browse the repository at this point in the history
we have multiple issue related to builder, and we don't have
any logs from thier end saved

this commit add code that collect the journalctl logs from builder
and upload it to s3 and Argus.
  • Loading branch information
fruch committed Jan 12, 2025
1 parent 2dd5aec commit 7c0d027
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vars/collectBuilderLogs.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!groovy

def call(){
sh """#!/bin/bash
set -xe
sudo journalctl --no-tail --no-pager -o short-precise > builder.log
tar -zcvf builder.log.tar.gz builder.log
./docker/env/hydra.sh upload --test-id \$SCT_TEST_ID --file builder.log.tar.gz
"""
}
2 changes: 2 additions & 0 deletions vars/runCollectLogs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ def call(Map params, String region){
fi
echo "end collect logs"
"""

collectBuilderLogs()
}

0 comments on commit 7c0d027

Please sign in to comment.