jenkinsci / jenkinsci/git-plugin
[JENKINS-42555] Allow host name alias for Git notifyCommit URLs
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
Recently upgraded from Atlassian Stash to Atlassian Bitbucket Server. At that time, we updated the host name from 'stash' to 'bitbucket' to provide a URL consistent with the tool name. This has the adverse effect of breaking the Stash Webhook To Jenkins in that the notifyCommit messages include the Bitbucket Server base URL which has now changed from stash.xxx.xx to bitbucket.xxx.xx.
It would be nice if the Git plugin allowed to configure alias names for the git host such that notifyCommit for 'stash.xxx.xx/some/repository' would trigger polling for all associated host aliases. This would eliminate the need to do a bulk edit on the Jenkins jobs to reconfigure the git urls.
---
Originally reported by michael_giroux, imported from: Allow host name alias for Git notifyCommit URLs
Raw content of original issue
Recently upgraded from Atlassian Stash to Atlassian Bitbucket Server. At that time, we updated the host name from 'stash' to 'bitbucket' to provide a URL consistent with the tool name. This has the adverse effect of breaking the Stash Webhook To Jenkins in that the notifyCommit messages include the Bitbucket Server base URL which has now changed from stash.xxx.xx to bitbucket.xxx.xx.
It would be nice if the Git plugin allowed to configure alias names for the git host such that notifyCommit for 'stash.xxx.xx/some/repository' would trigger polling for all associated host aliases. This would eliminate the need to do a bulk edit on the Jenkins jobs to reconfigure the git urls.
- environment:
Jenkins 2.32.2, Linux Redhat EL7, Java 1.8.0_121
Contributor guide
Assessment
This issue has not been assessed yet.