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

          Mark Waite added a comment -

          The CloneOption controls the timeout value for clone (as implemented by "git fetch"). The CheckoutOption controls the timeout value for "git checkout".

          Refer to the green circled items for clone timeout, and the red circled items for checkout timeout:

          Mark Waite added a comment - The CloneOption controls the timeout value for clone (as implemented by "git fetch"). The CheckoutOption controls the timeout value for "git checkout". Refer to the green circled items for clone timeout, and the red circled items for checkout timeout:

          Martin Stolle added a comment -

          Ah sorry, missed that. Thanks for your help.

          Martin Stolle added a comment - Ah sorry, missed that. Thanks for your help.

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

              Created:
              Updated:
              Resolved: