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

Jenkins, Git Host Key Verification Configuration

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Minor Minor
    • git-client-plugin
    • jenkins: 2.362
      git-client plugin: 3.11.2

      Since git-client version 3.11.2
      JENKINS-69149 Set 'Known hosts file' strategy as default.
      Is it possible to change the default strategy to "Accept first connection" via init groovy script.
      At javadoc there are some docs about that, link

      At the moment I can't get the Exntesion list or descriptor of that class.

      Jenkins jenkins = Jenkins.getInstance()
      def gitClient = jenkins.getExtensionList(org.jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy.class)[0]
      
      println gitClient

      And I get this result:

      org.jenkinsci.plugins.gitclient.verifier.NoHostKeyVerificationStrategy@1f0e0623 

      But the current value is - "Known Host File". Even if I'll change the value through UI, the result won't change and still "NoHostKeyVerificationStrategy".

      Can you please help me with this situation.

            markewaite Mark Waite
            baurzhan Baurzhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: