Skip to content

Creating a new Node on Jenkins with SSH Credentials #102

Answered by joelee2012
devrajshetake asked this question in Q&A
Discussion options

You must be logged in to vote

@devrajshetake it's a little complicated, you have to create ssh node in browser and inspect the request to get the supported attributes. for example, inspect request with default setting:

{
  "name": "test",
  "nodeDescription": "",
  "": [
    "",
    "hudson.plugins.sshslaves.SSHLauncher",
    "0"
  ],
  "numExecutors": "1",
  "remoteFS": "",
  "labelString": "",
  "mode": "NORMAL",
  "launcher": {
    "oldCommand": "",
    "stapler-class": "hudson.plugins.sshslaves.SSHLauncher",
    "$class": "hudson.plugins.sshslaves.SSHLauncher",
    **"host": "<some-ssh-node-address>",**
    "includeUser": "false",
    **"credentialsId": "<some-ssh-key-credential-id>",**
    "": "0",
    "sshHostKe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devrajshetake
Comment options

@joelee2012
Comment options

Answer selected by devrajshetake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants