[.gitignore] add build directories to gitignore

Merged Thomas Fetzer requested to merge gitignore into release-2.8

Merge request reports