mirror of https://github.com/codevalet/codevalet
Set up the instance URL
This commit is contained in:
parent
f0bf989265
commit
a9ead77b78
|
@ -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/")
|
||||
}
|
Loading…
Reference in New Issue