updated 'publish' function to  monitor the status until 'Refresh'
added a sleep before checking status
Merge pull request #832 from sghai/fix-publish-cv

Fixed: Changeset apply failed when publish CV is in progress