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:
|
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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user