jenkinsci / jenkinsci/git-plugin

[JENKINS-42555] Allow host name alias for Git notifyCommit URLs

Open
#3,052 0 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.