, view all tags

How to add new JENKINS slave nodes (clients)

Set up the jenkins user on the client node

  • Create the user jenkins on the node

Passwordless ssh from jenkins server configuration

  • If not already done, on the jenkins server enter ssh-keygen -t rsa without specifying a password

Passwordless ssh from jenkins client configuration

  • mkdir /home/jenkins/.ssh
  • chmod 700 /home/jenkins/.ssh/
  • vim .ssh/authorized_keys (<< copy here the content of cat .ssh/id_rsa.pub run on jenkins server home)
  • chmod 640 .ssh/authorized_keys
  • service sshd restart (as root)

Create the node in Jenkins

  • Point your browser to the jenkins instance: http://ci-01.cnaf.infn.it:8080/
  • Log in as admin and go to Configura Jenkins -> Gestisci nodi
  • Go to New Node
  • Insert node name and select the Copy existing node radio button. Specify the node to be copied eg. ci-02
  • Modify the following fields according to your desiderata: Name, Description, Labels (important for triggering builds on this node), Host
  • Click on the Save button
  • The user which performs ssh (jenkins) is already specified. If the node is created from scratch this is another option to be specified.

In order to trigger a build on the already created node, specify the corresponding label in the build options.

-- FabioCapannini - 2013-05-08

Edit | Attach | PDF | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r1 - 2013-05-08 - FabioCapannini
  • Edit
  • Attach
This site is powered by the TWiki collaboration platformCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback