diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-07-04 19:05:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2021-07-04 19:05:52 +0000 |
commit | 23bb2b54f6bdcd159a7d08ce3ac83836d568af04 (patch) | |
tree | cf988474d0b763724923d1107677b505ebabd891 /common/scripts/dumpjournal.sh | |
parent | c6421d6d2955a8fe9b754c2e348c05615d9d3c71 (diff) | |
parent | 840e93ebc56a57ab7557001fd15b68ee408e229f (diff) |
Merge "SPEC-4003: Use pyartiproxy for uploading a file to artyfactory"lamprey_12.0.1lamprey_12.0.0lamprey/12.0.1lamprey/12.0.012.0.112.0.0
Diffstat (limited to 'common/scripts/dumpjournal.sh')
-rwxr-xr-x | common/scripts/dumpjournal.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/scripts/dumpjournal.sh b/common/scripts/dumpjournal.sh index 696b994..9316676 100755 --- a/common/scripts/dumpjournal.sh +++ b/common/scripts/dumpjournal.sh @@ -19,6 +19,18 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +if [ -x ./artiproxy-upload.sh ];then + DUMP_FILE=/tmp/dump + SYSTEMD_COLORS=false journalctl -a --no-pager > $DUMP_FILE + ./artiproxy-upload.sh $DUMP_FILE dumpjournal + # still dump to output if any error arise + if [ $? -eq 0 ];then + exit 0 + fi +else + echo "No upload, fallback to dump to console" +fi + SYSTEMD_COLORS=false journalctl -a --no-pager echo "dumpjournal: pass" exit 0 |