[1.7.x] Added some directories on Jenkins to flake8 exclude.

Backport of 53908c1f934b32e83e9fa34c14910b1837f7f610 from master