Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51419

Jenkins polling doesn't detect commits in Github

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

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

          johann ko created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Description Original: 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' ) }}

          {{     } }}

          {{}}}
          New: 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:

          {noformat}
          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
          {noformat}

          My pipeline script is as below:

          {noformat}
          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' )
              }
          }
          {noformat}
          Mark Waite made changes -
          Description Original: 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:

          {noformat}
          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
          {noformat}

          My pipeline script is as below:

          {noformat}
          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' )
              }
          }
          {noformat}
          New: 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:

          {noformat}
          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
          {noformat}

          My pipeline script is as below:

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

            Unassigned Unassigned
            johannko johann ko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: