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

configurable scm polling for github organization folder jobs

      I would like to be able to configure my github organization folder to use scm polling for jobs it creates.

      My Jenkins server is behind a firewall and cannot be accessed by Github. The current web hook functionality doesn't work. I need some other way to trigger builds.

          [JENKINS-34779] configurable scm polling for github organization folder jobs

          Dan Jasek created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170970 ] New: JNJira + In-Review [ 184110 ]
          mcrooney made changes -
          Priority Original: Trivial [ 5 ] New: Major [ 3 ]
          Summary Original: repo polling New: configurable scm polling for github organization folder jobs

          mcrooney added a comment -

          Agree that this would be super useful. Unless I'm missing something, there's no way to poll the SCM regularly. Even if I change the whole Github Org folder to run regularly, it doesn't propagate to the created folders and jobs. In practice this means the jobs don't run automatically at all it appears :/ Getting builds after a commit occurs is a pretty important feature of a CI tool, so this seems like a big gap for people behind VPN/firewall/intranet who can't enable webhooks!

          mcrooney added a comment - Agree that this would be super useful. Unless I'm missing something, there's no way to poll the SCM regularly. Even if I change the whole Github Org folder to run regularly, it doesn't propagate to the created folders and jobs. In practice this means the jobs don't run automatically at all it appears :/ Getting builds after a commit occurs is a pretty important feature of a CI tool, so this seems like a big gap for people behind VPN/firewall/intranet who can't enable webhooks!
          Jesse Glick made changes -
          Component/s New: branch-api-plugin [ 18621 ]
          Component/s Original: github-organization-folder-plugin [ 21427 ]

          Jesse Glick added a comment -

          This code sets repository projects to poll for changes once per day. I could have sworn there was an RFE to make this customizable at the OrganizationFolder level long since filed, but I cannot find it now.

          To use webhooks behind a firewall, IT department permitting, try ngrok.io. You must be sure that your Jenkins security configuration denies anonymous read access. Demo

          Jesse Glick added a comment - This code sets repository projects to poll for changes once per day. I could have sworn there was an RFE to make this customizable at the OrganizationFolder level long since filed, but I cannot find it now. To use webhooks behind a firewall, IT department permitting, try ngrok.io. You must be sure that your Jenkins security configuration denies anonymous read access. Demo

          mcrooney added a comment -

          Thanks so much for the update Jesse! So, should we consider this the RFE then? "IT department permitting" is the important part, other similar services (localtunnel.me) are already blocked, ngrok isn't yet but they certainly wouldn't allow this if they knew we wanted to use it. We could try it under the radar, but the better solution for us might just be to build our own version of the plugin with "5m" instead of "1d" for now until it is configurable

          mcrooney added a comment - Thanks so much for the update Jesse! So, should we consider this the RFE then? "IT department permitting" is the important part, other similar services (localtunnel.me) are already blocked, ngrok isn't yet but they certainly wouldn't allow this if they knew we wanted to use it. We could try it under the radar, but the better solution for us might just be to build our own version of the plugin with "5m" instead of "1d" for now until it is configurable
          mcrooney made changes -
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]

          mcrooney added a comment -

          I am happy to help with a PR, though I'd need some guidance. I assume the github-org-folder needs a configuration option, though I'm not sure how to pass/persist that option in a way that can be read from branch-api-plugin: https://github.com/jenkinsci/branch-api-plugin/blob/7d7c8e9e79da86d997367b7d47267f1f02cbe281/src/main/java/jenkins/branch/OrganizationFolder.java#L191. Any suggestions?

          mcrooney added a comment - I am happy to help with a PR, though I'd need some guidance. I assume the github-org-folder needs a configuration option, though I'm not sure how to pass/persist that option in a way that can be read from branch-api-plugin: https://github.com/jenkinsci/branch-api-plugin/blob/7d7c8e9e79da86d997367b7d47267f1f02cbe281/src/main/java/jenkins/branch/OrganizationFolder.java#L191 . Any suggestions?

          Wouldn't that be covered by JENKINS-34005?

          Allan BURDAJEWICZ added a comment - Wouldn't that be covered by JENKINS-34005 ?

            cloudbees CloudBees Inc.
            danjasek Dan Jasek
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: