Set up the instance URL

This commit is contained in:
R. Tyler Croy 2017-07-26 19:13:07 -07:00
parent f0bf989265
commit a9ead77b78
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/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/")
}