jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-46068] Do not detect renamed GitHub repos under the old name (bonus points if job can be renamed when rename detected)

Open
#1,117 17 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

If a Github repo is renamed, due to the fact that Github supports repository redirects (which doesn't seem possible to disable) Jenkins will create a repository and trigger a build for a repo under the old name and under the new name as well.

Re-scanning the old repo name does not cause it to be removed.

https://developer.github.com/changes/2015-07-21-automatic-redirects-for-renamed-repositories/

This is problematic as it can confuse users and also trigger duplicate builds under the new and old repo names.

Github branch source plugin 2.2.3

Github API plugin 1.86

---
Originally reported by jhovell, imported from: Do not detect renamed GitHub repos under the old name (bonus points if job can be renamed when rename detected)


  • status: Reopened
  • priority: Major
  • component(s): github-branch-source-plugin
  • label(s): org-folder, triaged-2018-11
  • resolution: Unresolved
  • votes: 7
  • watchers: 16
  • imported: 2025-12-02

Raw content of original issue

If a Github repo is renamed, due to the fact that Github supports repository redirects (which doesn't seem possible to disable) Jenkins will create a repository and trigger a build for a repo under the old name and under the new name as well.

Re-scanning the old repo name does not cause it to be removed.

https://developer.github.com/changes/2015-07-21-automatic-redirects-for-renamed-repositories/

This is problematic as it can confuse users and also trigger duplicate builds under the new and old repo names.

Github branch source plugin 2.2.3

Github API plugin 1.86

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.