Merge "Add SSH Host Key Verifier Strategy"
This commit is contained in:
commit
881b2fcba6
@ -29,11 +29,19 @@ class CreateNodeTask(Task):
|
||||
if 'credentials_id' in self.args:
|
||||
launcher_params = {'port': 22,
|
||||
'credentialsId': self.args['credentials_id'],
|
||||
'sshHostKeyVerificationStrategy':
|
||||
{'stapler-class':
|
||||
('hudson.plugins.sshslaves.verifiers.'
|
||||
'NonVerifyingKeyVerificationStrategy')},
|
||||
'host': self.args['host']}
|
||||
else:
|
||||
launcher_params = {'port': 22,
|
||||
'username': self.args['username'],
|
||||
'privatekey': self.args['private_key'],
|
||||
'sshHostKeyVerificationStrategy':
|
||||
{'stapler-class':
|
||||
('hudson.plugins.sshslaves.verifiers.'
|
||||
'NonVerifyingKeyVerificationStrategy')},
|
||||
'host': self.args['host']}
|
||||
args = dict(
|
||||
name=self.args['name'],
|
||||
|
Loading…
Reference in New Issue
Block a user