I did start by adding the rpmbuild dir under $TEMPDIR but then realised if the rpmbuild dir is deleted when the script exits, we delete the SRPM and can't submit it to koji :)

In Jenkins it creates a separate workspace for every job running, so we can safely run this in parallel provided the files are created within the checkout.