Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748455
D1804.id4571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D1804.id4571.diff
View Options
diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,18 @@
All notable changes to this project will be documented in this file.
This project adheres to [semantic versioning](https://semver.org/).
+## [1.0.1] - 2018-09-21
+### Deprecated
+- HUDSON_URL environment variable is now deprecated.
+ Use JENKINS_URL instead. Will be removed in 2.0.
+
+### Changed
+- You can still use the deprecate HUDSON_URL environment
+ variable. The server will print a deprecation notice.
+
+### Fixed
+- Fix issue where builds URL were not show anymore.
+
## [1.0.0] - 2018-09-21
### Added
- Jenkins 2.0 multi-branch pipelines are supported.
diff --git a/tommy.rb b/tommy.rb
--- a/tommy.rb
+++ b/tommy.rb
@@ -35,13 +35,42 @@
begin
JENKINS_URL = ENV.fetch('JENKINS_URL')
rescue KeyError
- $stderr.write %(You must define JENKINS_URL to your Jenkins instance URL.
+ # HUDSON_URL is deprecated and will be removed in Tommy 2.0.
+ if ENV.include? 'HUDSON_URL'
+ JENKINS_URL = ENV['HUDSON_URL']
+ $stderr.write %(\e[31m
+╔══════════════════════════════════════════════════════════╗
+║ *** DEPRECATION NOTICE *** ║
+╟──────────────────────────────────────────────────────────╢
+║ ║
+║ You currently use the HUDSON_URL environment variable ║
+║ to configure your Jenkins (or Hudson?) instance URL. ║
+║ ║
+║ As Hudson isn't maintained anymore, we're migrating this ║
+║ setting to JENKINS_URL. ║
+║ ║
+║ Simply replace HUDSON_URL by JENKINS_URL in your Docker ║
+║ or service configuration. ║
+║ ║
+║ The current setting is deprecated and will be dropped ║
+║ in a future version (plan is Tommy 2.0). ║
+║ ║
+║ Reference: https://devcentral.nasqueron.org/T1448 ║
+║ ║
+╚══════════════════════════════════════════════════════════╝
+\e[0m
+)
+ else
+ $stderr.write %(You must define the JENKINS_URL environment variable
+to point to your Jenkins instance URL, without trailing slash.
-If you need to pass credentials, you can use the syntax https://username:password@jenkins.domain.tld.
+If you need to pass credentials, you can use the following syntax:
+https://username:password@jenkins.domain.tld
)
- exit 1
-end
+ exit 1
+ end
+end
# -------------------------------------------------------------
# Project class
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 08:56 (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248884
Default Alt Text
D1804.id4571.diff (3 KB)
Attached To
Mode
D1804: Deprecate HUDSON_URL
Attached
Detach File
Event Timeline
Log In to Comment