Page MenuHomeDevCentral

D1792.diff
No OneTemporary

D1792.diff

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@
```
docker pull nasqueron/tommy
-docker run -dt -p 8080:4567 -e HUDSON_URL=http://ci.domain.tld nasqueron/tommy
+docker run -dt -p 8080:4567 -e JENKINS_URL=http://ci.domain.tld nasqueron/tommy
```
### Contributors
diff --git a/tommy.rb b/tommy.rb
--- a/tommy.rb
+++ b/tommy.rb
@@ -32,7 +32,7 @@
# Environment
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-HUDSON_URL = ENV['HUDSON_URL'] || 'http://username:password@my.hudsonurl.com'
+JENKINS_URL = ENV['JENKINS_URL'] || 'http://username:password@jenkins.domain.tld'
# -------------------------------------------------------------
# Project class
@@ -117,7 +117,7 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def prepare_dashboard
- json = RestClient::Resource.new("#{HUDSON_URL}/api/json?depth=1")
+ json = RestClient::Resource.new("#{JENKINS_URL}/api/json?depth=1")
@projects = Project.parse_incoming_json(JSON.parse(json.get))
erb :index

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 07:37 (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248906
Default Alt Text
D1792.diff (1 KB)

Event Timeline