I tried to test the jenkins-wordpress.sh, and found that destination_siteurl and staging_siteurl are the same url after Transferring staging database to production..
maybe # Get Prod Site Url should be done before Transferring staging database to production..
ref
https://github.com/stardothosting/jenkins-push-scripts/blob/master/jenkins-wordpress.sh#L54