
// Configure Jenkins Location and Admin Email
def set_location_configuration = { instance, admin_email_addr='', location_url='' ->
  def jenkinsLocationConfiguration = jenkins.model.JenkinsLocationConfiguration.get()
  jenkinsLocationConfiguration.setAdminAddress(admin_email_addr)
  jenkinsLocationConfiguration.save()
}

