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

          Martin Stolle created issue -
          Martin Stolle made changes -
          Description Original: Die Option CheckoutOption *timeout* has no effect.

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

          Log output:

          {code:java}
          [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
          {code}

          New: The option CheckoutOption *timeout* has no effect.

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

          Log output:

          {code:java}
          [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
          {code}

          Mark Waite made changes -
          Attachment New: clone-option-controls-fetch-timeout.JPG [ 35006 ]

          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:
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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.
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: