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