jenkinsci / jenkinsci/git-plugin

[JENKINS-71026] Commit ID does not work as Branch Specifier for Pipeline jobs

Open
#3,789 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

We always used freestyle projects and there we can specifiy the commitId as the branch specifier. This works. However when using a pipeline job, this does not work. The documentation says this should be possible, but it does not work:

When doing this as a freestyle project, it correctly gets the commit:

---
Originally reported by riwerf, imported from: Commit ID does not work as Branch Specifier for Pipeline jobs


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

Raw content of original issue

We always used freestyle projects and there we can specifiy the commitId as the branch specifier. This works. However when using a pipeline job, this does not work. The documentation says this should be possible, but it does not work:

When doing this as a freestyle project, it correctly gets the commit:

3 attachments

- [image-2023-04-11-15-18-43-496.png](https://issues.jenkins.io/secure/attachment/60235/image-2023-04-11-15-18-43-496.png)
> ![image-2023-04-11-15-18-43-496.png](https://issues.jenkins.io/secure/attachment/60235/image-2023-04-11-15-18-43-496.png)
- [image-2023-04-11-15-19-23-772.png](https://issues.jenkins.io/secure/attachment/60234/image-2023-04-11-15-19-23-772.png)
> ![image-2023-04-11-15-19-23-772.png](https://issues.jenkins.io/secure/attachment/60234/image-2023-04-11-15-19-23-772.png)
- [image-2023-04-11-15-21-15-090.png](https://issues.jenkins.io/secure/attachment/60233/image-2023-04-11-15-21-15-090.png)
> ![image-2023-04-11-15-21-15-090.png](https://issues.jenkins.io/secure/attachment/60233/image-2023-04-11-15-21-15-090.png)

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.