New Git Plugin Feature - configure alias host names

13 views
Skip to first unread message

Michael Giroux

unread,
Mar 7, 2017, 3:03:17 PM3/7/17
to Jenkins Users
For several years, we have been using Stash to manage our Git repos.  The host name for our server was 'stash.xxx.com'.

Recently we upgraded to the latest version of Bitbucket Server.  At the same time, we upgraded the server hardware, and to avoid confusion that might occur when users connected to 'stash.xxx.com' and landed in 'Bitbucket Server', we set the host name as 'bitbucket.xxx.com'.

We also configured Bitbucket Server to use a base URL of 'http://bitbucket.xxx.com'.

This had the adverse effect of breaking the Stash Webhook to Jenkins in that the URL used in the notifyCommit no longer matches any of the jobs in Jenkins.

ex.  http://jenkins.host.com/git/notifyCommit?url=http://bitbucket.xxx.com/....  no longer matches any of the jobs that are configured to fetch from http://stash.xxx.com/...  and we no longer have builds kicked off when code is pushed to Bitbucket Server.

Maybe it was a mistake to change the base url for Bitbucket Server, but 'bitbucket' seemed more appropriate than 'stash' for access to the UI.

Suggestion:
To deal with this situation, it would be handy if the Git plugin provided a means to configure host name aliases so that the notifyCommit message would trigger polling for 'stash.xxx.com' or 'bitbucket.xxx.com'.

Would this be of general interest?

Michael Giroux

Victor Martinez

unread,
Mar 7, 2017, 4:04:00 PM3/7/17
to Jenkins Users
Out of curiosity, adding another dns entry might solve your issue, doesn't it?

stash.xxx.com -> 1.2.3.4
bitbucket.xxx.com -> 1.2.3.4

Cheers
Reply all
Reply to author
Forward
0 new messages