Oh in that case you could use:

    RPMBUILD=$(mktemp --tmpdir $(pwd)/pkg-XXXXXXX/rpmbuild)

But I assume Jenkins already creates unique PWD right?