Useful groovy scripts that can be used while using Jenkins-CI for workflow automation