Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F55860822
D1792.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D1792.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 2, 03:56 (17 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4243419
Default Alt Text
D1792.diff (1 KB)
Attached To
Mode
D1792: Use JENKINS_URL as environment variable
Attached
Detach File
Event Timeline
Log In to Comment