[users at bb.net] Skipping a build based on file patterns

Chris Spencer chrisspen at gmail.com
Mon Sep 24 15:04:55 UTC 2018


What's the best way to skip a build if the change doesn't include certain
files?

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.

I think this is what the ChangeFilter (
http://docs.buildbot.net/0.8.0/Change-Filters.html) is used for but the
specified fields only seem to let you filter based on folder names, not
file extensions.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20180924/c89c0149/attachment.html>


More information about the users mailing list