mirror of https://github.com/codevalet/canary
Update the Jenkins DAO to reflect the new subdomains for Code Valet
This commit is contained in:
parent
322bbe5dc0
commit
945c8003a4
|
@ -8,7 +8,7 @@ module CodeValet::Canary::DAO
|
||||||
# but rather information about the state of the instance.
|
# but rather information about the state of the instance.
|
||||||
class Jenkins
|
class Jenkins
|
||||||
# Base URL to contrict
|
# Base URL to contrict
|
||||||
URL_BASE = ENV['JENKINS_URL_BASE'] || 'https://codevalet.io'
|
URL_BASE = ENV['JENKINS_URL_BASE']
|
||||||
CACHE_SECONDS = 300
|
CACHE_SECONDS = 300
|
||||||
|
|
||||||
attr_reader :error
|
attr_reader :error
|
||||||
|
@ -37,7 +37,11 @@ module CodeValet::Canary::DAO
|
||||||
def rebuilt_for(user)
|
def rebuilt_for(user)
|
||||||
# NOTE: worth investigating whether Jenkins will provide the appropriate
|
# NOTE: worth investigating whether Jenkins will provide the appropriate
|
||||||
# caching headers to
|
# caching headers to
|
||||||
url = "#{URL_BASE}/u/#{user}/userContent/builtOn.txt"
|
url = "https://#{user}.codevalet.io/userContent/builtOn.txt"
|
||||||
|
if URL_BASE
|
||||||
|
url = "#{URL_BASE}/userContent/builtOn.txt"
|
||||||
|
end
|
||||||
|
|
||||||
response = connection.get(url)
|
response = connection.get(url)
|
||||||
return response.body if response.success?
|
return response.body if response.success?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue