-
Bug
-
Resolution: Not A Defect
-
Minor
-
Jenkins 2.33
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
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:
