<p><a href="https://gerrit.osmocom.org/12045">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/gerrit-verifications.yml">File jobs/gerrit-verifications.yml:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/gerrit-verifications.yml@97">Patch Set #2, Line 97:</a> <code style="font-family:monospace,monospace">            (FIRMWARE_VERSION == "femtobts_v2.7" && BTS_MODEL == "sysmo" && with_manuals == True) ||</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">why building thm here instead of "master" version?</blockquote></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">I had this first:<br>  (FIRMWARE_VERSION == "master" && with_manuals == True)</pre><p style="white-space: pre-wrap; word-wrap: break-word;">But then I've realized that the missing BTS_MODEL means: build this with FIRMWARE_VERSION == "master" for *every* BTS_MODEL. Here's a nice visualization:</p><p style="white-space: pre-wrap; word-wrap: break-word;">https://jenkins.osmocom.org/jenkins/view/master/job/master-osmo-bts/</p><p style="white-space: pre-wrap; word-wrap: break-word;">I've moved it to this line, so the manuals really only get built once.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/gerrit-verifications.yml@177">Patch Set #2, Line 177:</a> <code style="font-family:monospace,monospace">            (with_vty == "False" && with_dsp == "none" && FIRMWARE_VERSION=="master" && with_manuals == False) ||</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'd also enable it here instead of the sysmo one.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Ack</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/gerrit-verifications.yml@190">Patch Set #2, Line 190:</a> <code style="font-family:monospace,monospace">            (IU == "--enable-iu" && with_manuals == True) ||</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Since enable iu takes more time, probably makes sense to enable document build in disable-iu instead […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Ack</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/master-builds.yml">File jobs/master-builds.yml:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12045/2/jobs/master-builds.yml@206">Patch Set #2, Line 206:</a> <code style="font-family:monospace,monospace">          cmd: GTP="$GTP" ./contrib/jenkins.sh --publish</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Shouldn't publish be called conditionally based on with_manuals? see GTP="$GTP" as example. […]</blockquote></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">I think the<br>  GTP="$GPT"<br>is redundant here, the variable should automatically be set as environment variable. But I've missed adjusting the docker lines, they will need to get the new with_manuals environment variable passed through. I'll fix this.</pre><p style="white-space: pre-wrap; word-wrap: break-word;">I'd rather use with_manuals than MANUALS, so we could extend it with building man pages later (see commit message).</p><p style="white-space: pre-wrap; word-wrap: break-word;">To answer your question, I don't see a nice way of implementing this. We could do it like that, but it really gets ugly when we would need to duplicate the whole docker line.</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  cmd: |<br>    if [ "$with_manuals" = "True" ]; then<br>      ./contrib/jenkins.sh --publish<br>    else<br>      ./contrib/jenkins.sh<br>    fi</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Instead I would implement logic in contrib/jenkins.sh, so it only publishes the manuals when both with_manuals is True and --publish is set. For example: https://gerrit.osmocom.org/#/c/osmo-pcu/+/12046/</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12045">change 12045</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/12045"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ie0643b17a6be6e86e281b50d78dd7a6858cf99ee </div>
<div style="display:none"> Gerrit-Change-Number: 12045 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 30 Nov 2018 13:37:17 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>