The pbuild tool
pbuild is part of the SUSE build code base, which provides safe and reprodicible building. It supports multiple kind of builds, starting with classic rpm, debian or arch package builds, to various image build formats including containers or appliances.
Single builds can be done with the stand-alone "build" tool, whereas a complete project build consisting of multiple build is done with pbuild. In that case multiple single "build" calls are done in parallel obeying dependencies of every step. The pbuild tool is capable of building an entire distribution from source or just parts of it.
Code
The pbuild tool can be used from the a git clone or via provided packages
$ git clone https://github.com/openSUSE/obs-build
Alternatively you can install the "build" package for your distribution here.
Documentation
Documentation is available here.