Naggappan Ramukannan
Naggappan Ramukannan

Reputation: 2812

create a new slave node in jenkins without restart

I copied /var/lib/jenkins/nodes/$node_name/config.xml to new jenkins server /var/lib/jenkins/nodes/$node_name/config.xml (also created $node_name) directroy in new jenkins server

It doesn't appear in UI unless I restart the jenkins server. But If i create any new nodes from UI it doesn't require any restart.

I guess we can write some groovy script to do this, please provide any suggestions to fix this issue.

I tried "Load config from disk" from jenkins UI , but it refreshes only jobs and not nodes.

Upvotes: 0

Views: 586

Answers (1)

gareth_bowles
gareth_bowles

Reputation: 21130

If you want to create new slaves from the command line, try the Jenkins CLI - specifically the create-node command. You can get a CLI reference from the /cli page on your Jenkins master.

Upvotes: 1

Related Questions