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

GitHubSCMBuilder does not respect clone depth parameter in pull requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • macOS 10.13.1, jenkins 2.92 (installed with brew), github-pullrequest 0.1.0-rc27, github 1.28.1, git 3.6.4

      Trying to build a pull request on my github repo and facing with build failure due to timeout.

      I've set shallow clone depth option to 1, but the log shows that "--depth" parameter is missing. Seems like that option is respected in branches only.

      So, git is trying to do a full repo clone, which is currently 600 MB. Able to workaround that by setting a 1 hour timeout, But that's absolutely insane: just to assure that a pull request is fine, I have to wait for an hour to start the check script.

      Probably, related to -JENKINS-45771-, maybe a separate shallow clone options would be more preferrable rather than ignoring it for some weird reason.

       

            lanwen Kirill Merkushev
            segazero Sergey Galezdinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: