<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">http://docs.buildbot.net/latest/manual/cfg-schedulers.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="inbox-inbox-docutils inbox-inbox-literal inbox-inbox-notranslate"><span class="inbox-inbox-pre" style="hyphens: none;"><span class="inbox-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="inbox-inbox-docutils inbox-inbox-literal inbox-inbox-notranslate"><span class="inbox-inbox-pre" style="hyphens: none;">True</span></code> if the change is worth building, and <code class="inbox-inbox-docutils inbox-inbox-literal inbox-inbox-notranslate"><span class="inbox-inbox-pre" style="hyphens: none;">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="inbox-inbox-docutils inbox-inbox-literal inbox-inbox-notranslate"><span class="inbox-inbox-pre" style="hyphens: none;">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="inbox-inbox-reference inbox-inbox-internal" href="http://docs.buildbot.net/latest/manual/cfg-schedulers.html?highlight=fileisimportant#change-filters" style="color:rgb(51,102,153)"><span class="inbox-inbox-std inbox-inbox-std-ref">Change Filters</span></a>. Note that this is different from <code class="inbox-inbox-docutils inbox-inbox-literal inbox-inbox-notranslate"><span class="inbox-inbox-pre" style="hyphens: none;"><span class="inbox-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 dir="ltr">On Mon, Sep 24, 2018 at 5:05 PM Chris Spencer <<a href="mailto:chrisspen@gmail.com">chrisspen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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.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>
_______________________________________________<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/mailman/listinfo/users</a></blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><br></p>
</div></div>