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

Git checkout of Bitbucket multibranch Pipelines fails when using ssh

      Since release 5.5.0 of the Git-Client the "security" → "Git Host Key Verification Configuration" setting is ignored (at least on Kubernetes Agents).

      Workaround is manual downgrade to 5.4.1

      Using anything other than "Known hosts files" causes "stderr: Host key verification failed." followed by "fatal: Could not read from remote repository."

      Checking out the pipeline repos beforehand is still working, seems to be a problem on kubernetes agents builds only.

        1. sysinfo.txt
          156 kB
        2. run-jenkins.sh
          0.9 kB
        3. plugins.txt
          2 kB
        4. image-2024-09-20-13-37-05-669.png
          image-2024-09-20-13-37-05-669.png
          37 kB

          [JENKINS-73797] Git checkout of Bitbucket multibranch Pipelines fails when using ssh

          Ruby Paasche created issue -
          Ruby Paasche made changes -
          Link New: This issue blocks JENKINS-73677 [ JENKINS-73677 ]
          Ruby Paasche made changes -
          Description Original: Since release 5.5.0 of the Git-Client the "security" → "Git Host Key Verification Configuration" setting is ignored (at least on Kubernetes Agents).


          Workaround is manual downgrade to 5.4.1
          New: Since release 5.5.0 of the Git-Client the "security" → "Git Host Key Verification Configuration" setting is ignored (at least on Kubernetes Agents).


          Workaround is manual downgrade to 5.4.1

          Using anything other than "Known hosts files" causes
          Ruby Paasche made changes -
          Description Original: Since release 5.5.0 of the Git-Client the "security" → "Git Host Key Verification Configuration" setting is ignored (at least on Kubernetes Agents).


          Workaround is manual downgrade to 5.4.1

          Using anything other than "Known hosts files" causes
          New: Since release 5.5.0 of the Git-Client the "security" → "Git Host Key Verification Configuration" setting is ignored (at least on Kubernetes Agents).


          Workaround is manual downgrade to 5.4.1

          Using anything other than "Known hosts files" causes "stderr: Host key verification failed." followed by "fatal: Could not read from remote repository."

          Checking out the pipeline repos beforehand is still working, seems to be a problem on kubernetes agents builds only.
          Ruby Paasche made changes -
          Summary Original: Regression of JENKINS-73677 on at least Kubernetes New: Regression of JENKINS-73677 on at least Kubernetes Agents
          Mark Waite made changes -
          Summary Original: Regression of JENKINS-73677 on at least Kubernetes Agents New: Git Host Key Verification setting is no longer honored on Kubernetes Agents
          Mark Waite made changes -
          Component/s New: git-client-plugin [ 17423 ]
          Component/s Original: git-plugin [ 15543 ]

          Yoerg added a comment -

          Same here, with OpenStack cloud agent and "Manually provided keys" strategy. Regression in 5.5.0, downgrade to 5.4.1 fixes the issue.

          Yoerg added a comment - Same here, with OpenStack cloud agent and "Manually provided keys" strategy. Regression in 5.5.0, downgrade to 5.4.1 fixes the issue.

          Mark Waite added a comment -

          Thanks for reporting the issue rpaasche.

          Can you confirm that when you upgraded to git plugin 5.5.0 that you also upgraded git client plugin? The git client plugin handles the host key verification configuration. There were host key verification changes in git client plugin 5.0.0 If you were running git client plugin 4.7.0 before and upgraded to git client plugin 5.0.0, that would narrow the search range for my investigation.

          You mention that it is specific to kubernetes agents. Can you share the other agent types that you have tried?

          Can you share the list of installed plugins before the problem and the list of installed plugins after the problem appeared? "How to report an issue" includes a script that generates the list of installed plugins on a running system.

          Mark Waite added a comment - Thanks for reporting the issue rpaasche . Can you confirm that when you upgraded to git plugin 5.5.0 that you also upgraded git client plugin? The git client plugin handles the host key verification configuration. There were host key verification changes in git client plugin 5.0.0 If you were running git client plugin 4.7.0 before and upgraded to git client plugin 5.0.0, that would narrow the search range for my investigation. You mention that it is specific to kubernetes agents. Can you share the other agent types that you have tried? Can you share the list of installed plugins before the problem and the list of installed plugins after the problem appeared? "How to report an issue" includes a script that generates the list of installed plugins on a running system.

          Mark Waite added a comment -

          Thanks yoerg. Same questions apply to your comment. Can you provide the detailed list of plugins installed before the problem was seen and after the problem was seen?

          Mark Waite added a comment - Thanks yoerg . Same questions apply to your comment. Can you provide the detailed list of plugins installed before the problem was seen and after the problem was seen?

            markewaite Mark Waite
            rpaasche Ruby Paasche
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: