Refactored config into a template
Update jenkins to use config template.