Change in osmo-gsm-tester[master]: jenkins: Only run journalctl if it is available on the machine

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Thu Feb 21 13:13:42 UTC 2019


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/12991 )

Change subject: jenkins: Only run journalctl if it is available on the machine
......................................................................

jenkins: Only run journalctl if it is available on the machine

It's not common to run journald inside containers and the journalctl
command is not installed. Don't attempt to run it.

Change-Id: I9dee3cb0d0ca203da77dfa1a793a4e4e5f8593c6
---
M contrib/jenkins-run.sh
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Pau Espin Pedrol: Looks good to me, approved



diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index 716899e..0b41247 100755
--- a/contrib/jenkins-run.sh
+++ b/contrib/jenkins-run.sh
@@ -30,7 +30,9 @@
 
 # tar up all results for archiving (optional)
 cd "$trial_dir"
-journalctl -u ofono -o short-precise --since "${time_start}" > "$(readlink last_run)/ofono.log"
+if [ -x $(command -v journalctl) ]; then
+  journalctl -u ofono -o short-precise --since "${time_start}" > "$(readlink last_run)/ofono.log"
+fi
 tar czf "$base/${trial_dir}-run.tgz" "$(readlink last_run)"
 tar czf "$base/${trial_dir}-bin.tgz" *.md5 *.tgz
 

-- 
To view, visit https://gerrit.osmocom.org/12991
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9dee3cb0d0ca203da77dfa1a793a4e4e5f8593c6
Gerrit-Change-Number: 12991
Gerrit-PatchSet: 1
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190221/62777c25/attachment.htm>


More information about the gerrit-log mailing list