jenkinsci / jenkinsci/git-plugin
[JENKINS-51419] Jenkins polling doesn't detect commits in Github
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I am currently using the "Poll SCM" option in Jenkins with the poll frequency set to 1 minute for now. My goal is to trigger the build job when the polling detects a commit in Github. However, despite committing to "Feature" branch multiple times, the polling doesn't detect the commit. It continually displays message similar to this:
```
Started on May 18, 2018 4:51:00 PM Using strategy: Default [poll] Last Built Revision: Revision ecf20b8hhh2f3d63b5809mle268024500364f2fb (refs/remotes/origin/feature/template-api)
> /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials
Setting http proxy: surf.proxy.company:80
> /usr/bin/git ls-remote -h https://github.developer.company.com/my- project.git # timeout=10
Found 3 remote heads on https://github.developer.company.com/my-project.git
Done.
Took 3.7 sec
No changes
```
My pipeline script is as below:
```
node {
stage('Preparation') {
git ( poll: true, branch: 'feature/template-api', credentialsId: '8u56qwcf-e74e-44z3-9437-c81b19cd3a29', url: 'https://github.developer.company.com/my-project.git' )
}
}
```
---
Originally reported by johannko, imported from: Jenkins polling doesn't detect commits in Github
Raw content of original issue
I am currently using the "Poll SCM" option in Jenkins with the poll frequency set to 1 minute for now. My goal is to trigger the build job when the polling detects a commit in Github. However, despite committing to "Feature" branch multiple times, the polling doesn't detect the commit. It continually displays message similar to this:
Started on May 18, 2018 4:51:00 PM Using strategy: Default [poll] Last Built Revision: Revision ecf20b8hhh2f3d63b5809mle268024500364f2fb (refs/remotes/origin/feature/template-api)
> /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials
Setting http proxy: surf.proxy.company:80
> /usr/bin/git ls-remote -h https://github.developer.company.com/my- project.git # timeout=10
Found 3 remote heads on https://github.developer.company.com/my-project.git
Done.
Took 3.7 sec
No changesMy pipeline script is as below:
node {
stage('Preparation') {
git ( poll: true, branch: 'feature/template-api', credentialsId: '8u56qwcf-e74e-44z3-9437-c81b19cd3a29', url: 'https://github.developer.company.com/my-project.git' )
}
}
Contributor guide
Assessment
This issue has not been assessed yet.