This change sets up the http-vs-ssh selection of the URL to be configurable, but the actual URL is only resolved when trying to do a notification. The main benefit of this is that repositories that are moved/renamed automatically pick up the change, but another benefit is that it makes it slightly easier to script up the default config when creating a new repository.
Custom urls are still permitted, in case there are users with special needs (eg jenkins not using the standard hostname because its behind a reverse proxy, or something)
Existing config is treated as 'custom', but auto-corrected when the hook config is saved. That means that any existing repositories will still have the hard-coded URL and so will NOT automatically update their URL when moved. (There's no easy way I could work out to do a data migration when the plugin was updated)
This change sets up the http-vs-ssh selection of the URL to be configurable, but the actual URL is only resolved when trying to do a notification. The main benefit of this is that repositories that are moved/renamed automatically pick up the change, but another benefit is that it makes it slightly easier to script up the default config when creating a new repository.
Custom urls are still permitted, in case there are users with special needs (eg jenkins not using the standard hostname because its behind a reverse proxy, or something)
Existing config is treated as 'custom', but auto-corrected when the hook config is saved. That means that any existing repositories will still have the hard-coded URL and so will NOT automatically update their URL when moved. (There's no easy way I could work out to do a data migration when the plugin was updated)