[libvirt PATCH 10/33] ci: build.sh: Add a wrapper function over the 'potfile' job