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

Parent remote credentials not used when updating submodules

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major

      Hi everyone,

      I'm trying to set up a multibranch pipeline on a repository containing a submodule that lives under the same Github account as my main repository. You'll find a screenshot of the job configuration below.

      However, credentials from the parent (main) repo don't seem to be used to pull the submodule. Therefore, the "checkout scm" step fails with the following error:

      Host key verification failed.
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      

      Many thanks in advance for your help.

      -Étienne

          [JENKINS-46318] Parent remote credentials not used when updating submodules

          Etienne Lafarge created issue -
          Etienne Lafarge made changes -
          Description Original: Hi everyone,

          I'm trying to set up a multibranch pipeline on a repository containing a submodule that lives under the same Github account as my main repository. You'll find a screenshot of the job configuration below.

          However, credentials from the parent (main) repo don't seem to be used to pull the submodule. Therefore, the "checkout scm" step fails with the following error:
          {code:java}
          Host key verification failed.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.

          {code}
          Many thanks in advance for your help.

          -Étienne
          New: Hi everyone,

          I'm trying to set up a multibranch pipeline on a repository containing a submodule that lives under the same Github account as my main repository. You'll find a screenshot of the job configuration below.

          However, credentials from the parent (main) repo don't seem to be used to pull the submodule. Therefore, the "checkout scm" step fails with the following error:
          {code:java}
          Host key verification failed.
          fatal: Could not read from remote repository.

          Please make sure you have the correct access rights
          and the repository exists.
          {code}
          Many thanks in advance for your help.

          -Étienne
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Etienne Lafarge made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Etienne Lafarge made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            elafarge Etienne Lafarge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: