#!/usr/bin/env groovy

/* Configure the instance's URL based on the GITHUB_USER */

import jenkins.model.*

if (System.env.get('GITHUB_USER')) {
    JenkinsLocationConfiguration.get().setUrl("http://${System.env.get('GITHUB_USER')}.codevalet.io/")
}

Set up the instance URL
Set up the instance URL
