-
New Feature
-
Resolution: Won't Do
-
Minor
-
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.