add wait loop for build success waiting