Merge "Add SSH Host Key Verifier Strategy"

This commit is contained in:
Jenkins 2017-09-11 17:12:51 +00:00 committed by Gerrit Code Review
commit 881b2fcba6

View File

@ -29,11 +29,19 @@ class CreateNodeTask(Task):
if 'credentials_id' in self.args: if 'credentials_id' in self.args:
launcher_params = {'port': 22, launcher_params = {'port': 22,
'credentialsId': self.args['credentials_id'], 'credentialsId': self.args['credentials_id'],
'sshHostKeyVerificationStrategy':
{'stapler-class':
('hudson.plugins.sshslaves.verifiers.'
'NonVerifyingKeyVerificationStrategy')},
'host': self.args['host']} 'host': self.args['host']}
else: else:
launcher_params = {'port': 22, launcher_params = {'port': 22,
'username': self.args['username'], 'username': self.args['username'],
'privatekey': self.args['private_key'], 'privatekey': self.args['private_key'],
'sshHostKeyVerificationStrategy':
{'stapler-class':
('hudson.plugins.sshslaves.verifiers.'
'NonVerifyingKeyVerificationStrategy')},
'host': self.args['host']} 'host': self.args['host']}
args = dict( args = dict(
name=self.args['name'], name=self.args['name'],