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

Git clone submodule with token fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • git plugin 3.12.0
      git client plugin 2.8.2
      Jenkins 2.192
      github branch source 2.5.6

      I use a token for github branch source plugin scanning repositories of an organization.

      One of the repos has submodules and the submodules are in the same organization. However, it seems the submodules cannot be cloned using the token. The head repository is cloned correctly.

       

      hudson.plugins.git.GitException: Command "C:\Program Files\git\cmd\git.exe submodule update --init --recursive Common" returned status code 1:
       stdout: 
       stderr: Cloning into 'C:/Program Files (x86)/Jenkins/workspace/XXXXX/Common'...
       Host key verification failed.
       fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
       and the repository exists.
       fatal: clone of 'git@github.ENTREPRISE.com:ORGANIZATION/Cortex_FW_common.git' into submodule path 'C:/Program Files (x86)/Jenkins/workspace/XXXXX/Common' failed
       Failed to clone 'Common'. Retry scheduled
      

       

            Unassigned Unassigned
            atsju2 julien staub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: