<p>Holger Freyther has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12997">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">jenkins: Only run journalctl if it is available on the machine<br><br>It's not common to run journald inside containers and the journalctl<br>command is not installed. Don't attempt to run it.<br><br>Change-Id: I7e4326df155dae776481bf7824694b3fb47abcad<br>---<br>M contrib/jenkins-run.sh<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/97/12997/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/jenkins-run.sh b/contrib/jenkins-run.sh</span><br><span>index 716899e..4a76c09 100755</span><br><span>--- a/contrib/jenkins-run.sh</span><br><span>+++ b/contrib/jenkins-run.sh</span><br><span>@@ -30,7 +30,9 @@</span><br><span> </span><br><span> # tar up all results for archiving (optional)</span><br><span> cd "$trial_dir"</span><br><span style="color: hsl(0, 100%, 40%);">-journalctl -u ofono -o short-precise --since "${time_start}" > "$(readlink last_run)/ofono.log"</span><br><span style="color: hsl(120, 100%, 40%);">+if [ ! -z "$(command -v journalctl)" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+  journalctl -u ofono -o short-precise --since "${time_start}" > "$(readlink last_run)/ofono.log"</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span> tar czf "$base/${trial_dir}-run.tgz" "$(readlink last_run)"</span><br><span> tar czf "$base/${trial_dir}-bin.tgz" *.md5 *.tgz</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12997">change 12997</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12997"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7e4326df155dae776481bf7824694b3fb47abcad </div>
<div style="display:none"> Gerrit-Change-Number: 12997 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Holger Freyther <holger@freyther.de> </div>