jenkinsci / jenkinsci/git-plugin

[JENKINS-66893] Use the forensics API to create the changeset

Open
#3,692 4 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

I'm not sure how the changeset is created by the git plugin. I see in https://plugins.jenkins.io/git/#changelog-extensions that I can ask it to compare against a specific branch. But this raises the question of what happens when I have

* master

|
| * my_branch
|/
* old_master
|

and I compare my_branch with master. I don't know the answer.

It seems to me the git plugin could benefit from using the "Reference build" from the https://plugins.jenkins.io/forensics-api/.

 

Additionally, when creating a multibranch pipeline with a GitHub branch source I can't really see the "Calculate changelog against a specific branch" option anywhere, I don't think it's available.

 

The current behaviour makes, for example, the first commit of a new branch lack any changeset at all.

 

---
Originally reported by reddwarf94, imported from: Use the forensics API to create the changeset


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

Raw content of original issue

I'm not sure how the changeset is created by the git plugin. I see in https://plugins.jenkins.io/git/#changelog-extensions that I can ask it to compare against a specific branch. But this raises the question of what happens when I have



* master

|
| * my_branch
|/
* old_master
|


and I compare my_branch with master. I don't know the answer.

It seems to me the git plugin could benefit from using the "Reference build" from the https://plugins.jenkins.io/forensics-api/.

 

Additionally, when creating a multibranch pipeline with a GitHub branch source I can't really see the "Calculate changelog against a specific branch" option anywhere, I don't think it's available.

 

The current behaviour makes, for example, the first commit of a new branch lack any changeset at all.

 

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.