Holger Freyther has uploaded this change for review. (
https://gerrit.osmocom.org/12997
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: I7e4326df155dae776481bf7824694b3fb47abcad
---
M contrib/jenkins-run.sh
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester
refs/changes/97/12997/1
diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh
index 716899e..4a76c09 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 [ ! -z "$(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/12997
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7e4326df155dae776481bf7824694b3fb47abcad
Gerrit-Change-Number: 12997
Gerrit-PatchSet: 1
Gerrit-Owner: Holger Freyther <[email protected]>