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

Git LFS Pull Timeout hardcoded to 10 min

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None

                  checkout([
                      $class: 'GitSCM',
                      userRemoteConfigs: [[
                        credentialsId: Def().sshCred,
                        url: env.GIT_URL,
                      ]],
                      branches: [[ name: env.BRANCH_NAME ]],
                      extensions: [ 
                      [ $class: 'GitLFSPull' ],
                      [ $class: 'CloneOption',
                        shallow: true,
                        noTags: true,
                        timeout: 60,
                        depth: 1,
                        honorRefspec: true, ],
                      [ $class: 'SubmoduleOption',
                        disableSubmodules: false,
                        recursiveSubmodules: true,
                        trackingSubmodules: false,
                        timeout: 60,
                        parentCredentials: true,
                        depth: 1,
                        shallow: true],
                      ], 
      

      Result:

      Pipeline] checkout
      09:38:08  The recommended git tool is: NONE
      09:38:08  using credential ****-ro-bitbucket-token
      09:38:08  Fetching changes from the remote Git repository
      09:38:08  Using shallow fetch with depth 1
      09:38:07   > C:\Program Files\Git\bin\git.exe rev-parse --resolve-git-dir C:\AAA\.git # timeout=10
      09:38:08   > C:\Program Files\Git\bin\git.exe config remote.origin.url ssh://git@XXX/YYY/ZZZ.git # timeout=10
      09:38:08  Fetching upstream changes from ssh://git@XXX/YYY/ZZZ.git
      09:38:08   > C:\Program Files\Git\bin\git.exe --version # timeout=10
      09:38:08   > git --version # 'git version 2.36.0.windows.1'
      09:38:08  using GIT_SSH to set credentials This is the Read Only BitBucket token
      09:38:08  Verifying host key using known hosts file
      09:38:08   > C:\Program Files\Git\bin\git.exe fetch --no-tags --force --progress --depth=1 -- ssh://git@XXX/YYY/ZZZ.git +refs/heads/*:refs/remotes/origin/* # timeout=60
      09:38:16  Checking out Revision 0f2c5462edbac437071de61b12480e5a35fb5a1b (origin/master)
      09:38:16  Enabling Git LFS pull
      09:38:16   > C:\Program Files\Git\bin\git.exe rev-parse "origin/master^{commit}" # timeout=10
      09:38:16   > C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
      09:38:16   > C:\Program Files\Git\bin\git.exe checkout -f 0f2c5462edbac437071de61b12480e5a35fb5a1b # timeout=10
      09:38:23   > C:\Program Files\Git\bin\git.exe config --get remote.origin.url # timeout=10
      09:38:23  using GIT_SSH to set credentials This is the Read Only BitBucket token
      09:38:23  Verifying host key using known hosts file
      09:38:23   > C:\Program Files\Git\bin\git.exe lfs pull origin # timeout=10
      ............
      [Pipeline] End of Pipeline
      hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe lfs pull origin" returned status code 130:
      stdout: 
      stderr: 
      Exiting because of "interrupt" signal.
      
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2697)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2111)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:87)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:3031)
      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from COMPUTERXXX
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
      		at hudson.remoting.Channel.call(Channel.java:1000)
      		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
      		at jdk.internal.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
      		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
      		at com.sun.proxy.$Proxy222.execute(Unknown Source)
      		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1362)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
      		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      Caused: hudson.plugins.git.GitException: Could not checkout 0f2c5462edbac437071de61b12480e5a35fb5a1b
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:3043)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
      	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:376)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:125)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Finished: FAILURE
      

      *NOTE*: There are many placed still have hardcode timeout as 10 min???

            Unassigned Unassigned
            nhatkhai NhatKhai Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: