Closed RakeshAMD closed 1 year ago
Sorry my bad,
here i got the reference. https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/client-and-managed-masters/creating-node-with-the-rest-api
{
"Jenkins-Crumb": "${JENKINS_CRUMB}",
"": [
"hudson.plugins.sshslaves.SSHLauncher",
"hudson.slaves.RetentionStrategy$Always"
],
"launcher": {
"": "2",
"$class": "hudson.plugins.sshslaves.SSHLauncher",
"credentialsId": "d436fff1-af1c-45df-8cb6-3907d119b8fa",
"host": "host",
"javaPath": "",
"jvmOptions": "",
"launchTimeoutSeconds": "",
"maxNumRetries": "",
"port": "22",
"prefixStartSlaveCmd": "",
"suffixStartSlaveCmd": "",
"retryWaitTime": "",
"sshHostKeyVerificationStrategy": {
"$class": "hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy",
"requireInitialManualTrust": true,
"stapler-class": "hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy"
},
"stapler-class": "hudson.plugins.sshslaves.SSHLauncher"
},
"retentionStrategy": {
"$class": "hudson.slaves.RetentionStrategy$Always",
"stapler-class": "hudson.slaves.RetentionStrategy$Always"
},
"type": "hudson.slaves.DumbSlave",
"mode": "NORMAL",
"name": "${NODE_NAME}",
"numExecutors": "1",
"remoteFS": "/home/jenkins",
"nodeDescription": "Agent node description",
"labelString": "agent-node-label",
"nodeProperties": {
"stapler-class-bag": "true"
}
}
ISSUE TYPE
Jenkinsapi 0.3.13
Jenkins 2.375.2
SUMMARY
Unable to override Host key verification option while creating node.
EXPECTED RESULTS
need an option here to retrieve host key verification method too. https://github.com/pycontribs/jenkinsapi/blob/master/jenkinsapi/node.py#L129