<div dir="ltr"><div>Yeah we can always bash around it, on our CI or when consuming it,</div><div>but that is not a clean solution in any case.</div><div><br></div><div>Having build updated to easier allow for what we need is a way to go.</div><div><br></div><div>--</div><div>tomaz</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 6, 2017 at 4:09 PM, Josef Cacek <span dir="ltr">&lt;<a href="mailto:jcacek@redhat.com" target="_blank">jcacek@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can also use a workaround through artifacts.zip. We use something like this in our automation:<br>
<br>
wget --user=guest --password=guest <a href="https://ci.wildfly.org/httpAuth/repository/downloadAll/WF_Nightly/.lastSuccessful/artifacts.zip" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>httpAuth/repository/<wbr>downloadAll/WF_Nightly/.<wbr>lastSuccessful/artifacts.zip</a><br>
unzip -q artifacts.zip<br>
export WILDFLY_DIST_ZIP=$(ls wildfly-*-SNAPSHOT.zip)<br>
unzip -q $WILDFLY_DIST_ZIP<br>
export WILDFLY_HOME=`pwd`/${WILDFLY_<wbr>DIST_ZIP%.zip}<br>
<br>
<br>
Regards,<br>
<br>
-- Josef<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Rostislav Svoboda&quot; &lt;<a href="mailto:rsvoboda@redhat.com">rsvoboda@redhat.com</a>&gt;<br>
&gt; To: &quot;WildFly Dev&quot; &lt;<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt; Sent: Wednesday, September 6, 2017 2:42:21 PM<br>
&gt; Subject: [wildfly-dev] WildFly nightly builds<br>
&gt;<br>
&gt; Hi.<br>
&gt;<br>
&gt; <a href="https://developer.jboss.org/thread/224262" target="_blank" rel="noreferrer">https://developer.jboss.org/<wbr>thread/224262</a> announced availability of WildFly<br>
&gt; nightly builds.<br>
&gt;<br>
&gt; Current status is that you must know the URL based on current version in<br>
&gt; master<br>
&gt; At this moment it is<br>
&gt; <a href="https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/wildfly-11.0.0.Final-SNAPSHOT.zip" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>guestAuth/repository/download/<wbr>WF_Nightly/latest.<wbr>lastFinished/wildfly-11.0.0.<wbr>Final-SNAPSHOT.zip</a>,<br>
&gt; root dir of the zip is wildfly-11.0.0.Final-SNAPSHOT<br>
&gt;<br>
&gt; &#39;11.0.0.Final-SNAPSHOT&#39; is the changing part and when you want to consume<br>
&gt; nightly build in CI (e.g. Travis) you end up doing unnecessary changes to<br>
&gt; .travis.yml (Alpha1-SNAPSHOT ==&gt; Beta1-SNAPSHOT ==&gt; Final-SNAPSHOT) when PRs<br>
&gt; fail because of unavailable nightly bits<br>
&gt;<br>
&gt; I would like to make automated consumption of WildFly nightly builds easier<br>
&gt;<br>
&gt; Proposal 1 - expose latest bits under the same URL + keep the same root dir<br>
&gt; name<br>
&gt;   URL:<br>
&gt;   <a href="https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/wildfly-latest-SNAPSHOT.zip" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>guestAuth/repository/download/<wbr>WF_Nightly/latest.<wbr>lastFinished/wildfly-latest-<wbr>SNAPSHOT.zip</a><br>
&gt;   root dir of the zip:  wildfly-latest-SNAPSHOT<br>
&gt;<br>
&gt; Automation would be prepared just once and &quot;work forever&quot;.<br>
&gt;<br>
&gt;<br>
&gt; Proposal 2 - keep current zip &amp; root dir name + add txt file with version<br>
&gt; information<br>
&gt;   introduce<br>
&gt;   <a href="https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/version.txt" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>guestAuth/repository/download/<wbr>WF_Nightly/latest.<wbr>lastFinished/version.txt</a><br>
&gt;   Currently it would contain &#39;11.0.0.Final-SNAPSHOT&#39;<br>
&gt;     Example to get version: mvn help:evaluate -Dexpression=project.version |<br>
&gt;     grep -v &quot;^\[&quot;<br>
&gt;<br>
&gt; Automation could consume content of version.txt and construct the download<br>
&gt; URL + root dir name<br>
&gt;   VERSION=`curl<br>
&gt;   <a href="https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/version.txt`" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>guestAuth/repository/download/<wbr>WF_Nightly/latest.<wbr>lastFinished/version.txt`</a><br>
&gt;   <a href="https://ci.wildfly.org/guestAuth/repository/download/WF_Nightly/latest.lastFinished/wildfly-${VERSION}.zip" target="_blank" rel="noreferrer">https://ci.wildfly.org/<wbr>guestAuth/repository/download/<wbr>WF_Nightly/latest.<wbr>lastFinished/wildfly-${<wbr>VERSION}.zip</a><br>
&gt;   root dir of the zip is wildfly-${VERSION}<br>
&gt;<br>
&gt;<br>
&gt; WDYT?<br>
&gt;<br>
&gt; Regards.<br>
&gt; Rostislav<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; wildfly-dev mailing list<br>
&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank" rel="noreferrer">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
&gt;<br>
______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank" rel="noreferrer">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
</div></div></blockquote></div><br></div>