<div dir="ltr">Thanks, that's what I was looking for.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 24, 2018 at 11:12 AM, Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is a callback (<span style="font-family:monospace;font-size:12.1875px;background-color:rgb(246,246,246)">fileIsImportant) </span>in schedulers for that.<div><a href="http://docs.buildbot.net/latest/manual/cfg-schedulers.html?highlight=fileisimportant" target="_blank">http://docs.buildbot.net/<wbr>latest/manual/cfg-schedulers.<wbr>html?highlight=fileisimportant</a><br></div><div><br></div><div>For diff between fileIsImportant and changeFilter:</div><div><br></div><div><dt style="font-family:"Open Sans",sans-serif;font-size:15px;background-color:rgb(246,246,246)"><code class="m_1711246962109934850inbox-inbox-docutils m_1711246962109934850inbox-inbox-literal m_1711246962109934850inbox-inbox-notranslate"><span class="m_1711246962109934850inbox-inbox-pre"><span class="m_1711246962109934850inbox-inbox-highlighted" style="background-color:rgb(251,229,78)">fileIsImportant</span></span></code></dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;font-family:"Open Sans",sans-serif;font-size:15px;background-color:rgb(246,246,246)">A callable which takes one argument, a Change instance, and returns <code class="m_1711246962109934850inbox-inbox-docutils m_1711246962109934850inbox-inbox-literal m_1711246962109934850inbox-inbox-notranslate"><span class="m_1711246962109934850inbox-inbox-pre">True</span></code> if the change is worth building, and <code class="m_1711246962109934850inbox-inbox-docutils m_1711246962109934850inbox-inbox-literal m_1711246962109934850inbox-inbox-notranslate"><span class="m_1711246962109934850inbox-inbox-pre">False</span></code> if it is not. Unimportant Changes are accumulated until the build is triggered by an important change. The default value of None means that all Changes are important.</dd><dt style="font-family:"Open Sans",sans-serif;font-size:15px;background-color:rgb(246,246,246)"><code class="m_1711246962109934850inbox-inbox-docutils m_1711246962109934850inbox-inbox-literal m_1711246962109934850inbox-inbox-notranslate"><span class="m_1711246962109934850inbox-inbox-pre">change_filter</span></code></dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;font-family:"Open Sans",sans-serif;font-size:15px;background-color:rgb(246,246,246)">The change filter that will determine which changes are recognized by this scheduler; <a class="m_1711246962109934850inbox-inbox-reference m_1711246962109934850inbox-inbox-internal" href="http://docs.buildbot.net/latest/manual/cfg-schedulers.html?highlight=fileisimportant#change-filters" style="color:rgb(51,102,153)" target="_blank"><span class="m_1711246962109934850inbox-inbox-std m_1711246962109934850inbox-inbox-std-ref">Change Filters</span></a>. Note that this is different from <code class="m_1711246962109934850inbox-inbox-docutils m_1711246962109934850inbox-inbox-literal m_1711246962109934850inbox-inbox-notranslate"><span class="m_1711246962109934850inbox-inbox-pre"><span class="m_1711246962109934850inbox-inbox-highlighted" style="background-color:rgb(251,229,78)">fileIsImportant</span></span></code>: if the change filter filters out a Change, then it is completely ignored by the scheduler. If a Change is allowed by the change filter, but is deemed unimportant, then it will not cause builds to start, but will be remembered and shown in status displays.</dd></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Mon, Sep 24, 2018 at 5:05 PM Chris Spencer <<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div dir="ltr"><div>What's the best way to skip a build if the change doesn't include certain files?</div><div><br></div><div>I'd like Buildbot to only run a build if certain files are changed (e.g. *.py, *.js, *.css, *.html, *.sql). I don't want a build to run if only documentation or README files have changed.<br></div><div><br></div><div>I think this is what the ChangeFilter (<a href="http://docs.buildbot.net/0.8.0/Change-Filters.html" target="_blank">http://docs.buildbot.net/0.8.<wbr>0/Change-Filters.html</a>) is used for but the specified fields only seem to let you filter based on folder names, not file extensions.</div><div><br></div><div>If this isn't practical to do with a ChangeFilter, is there a way to design a build step to pass the build while skipping all other steps? I have a bash script that uses git/grep/awk to do this check, and return a boolean if any key files have changed.<br></div></div></div></div></div>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr" class="m_1711246962109934850gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><br></p>
</div></div>
</font></span></blockquote></div><br></div>