The option CheckoutOption timeout has no effect.

      checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CheckoutOption', timeout: 60]], submoduleCfg: [], userRemoteConfigs: [[url: 'file:////Foo/bar/.git']]])
      

      Log output:

      [Pipeline] { (Checkout)
      [Pipeline] checkout
       > git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git.exe config remote.origin.url file:////Foo/Bar/.git # timeout=10
      Fetching upstream changes from file:////Foo/Bar/.git
       > git.exe --version # timeout=10
       > git.exe fetch --tags --progress file:////Foo/Bar/.git +refs/heads/*:refs/remotes/origin/*
      ERROR: Timeout after 10 minutes
      

          [JENKINS-40069] git timeout option has no effect

            markewaite Mark Waite
            martin_stolle Martin Stolle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: