-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(pipelines): collect builders logs
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
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,6 @@ def call(Map params, String region){ | |
fi | ||
echo "end collect logs" | ||
""" | ||
|
||
collectBuilderLogs() | ||
} |