How to create SSH nodes using Bash and cURL?

Article ID:235208547
1 minute readKnowledge base


I would like to be able to create SSH nodes remotely on demand, using Bash and cURL.


  • CloudBees Jenkins Enterprise

  • Bash

  • cURL


Use this gist.

The script will fail quickly if you miss a parameter, so if you see errors like:

./ line 99: JENKINS_URL: unbound variable`

it means you missed a parameter.

See ./ -h for usage.