lib/jenkins/builder/config.rb in jenkins-builder-0.3.0 vs lib/jenkins/builder/config.rb in jenkins-builder-0.3.1
- old
+ new
@@ -53,10 +53,10 @@
def aliases=(aliases)
@config['aliases'] = aliases
end
def url
- @config['services'][@service]['url']
+ @service && @config['services'][@service]['url']
end
def url=(url)
@config['services'][@service]['url'] = url
end