jenkinsci / jenkinsci/git-plugin

[JENKINS-51419] Jenkins polling doesn't detect commits in Github

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

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


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • label(s): Polling, git, plug-in, polling-scm
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-02

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 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' )
}
}

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.