Updating pipeline code and fix to deploy-scripts.