Attempting to get environment from the build def name
Try fixing env detection. Remove link to build log for successful deploys