jenkinsci / jenkinsci/git-plugin
[JENKINS-71026] Commit ID does not work as Branch Specifier for Pipeline jobs
- 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
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-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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.