Git clone submodule with token fails

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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
      

       

            Assignee:
            Unassigned
            Reporter:
            julien staub
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: