1. Install the "Node and Label Parameter Plugin" on your Jenkins server.
This plugin allows you to
pass parameters to your Jenkins jobs, including the labels for dynamic node provisioning
2 after installing plugin then go to dashboard >> select one project >> choose This project is
parameterized then you can see node and label option
3. Then select node then it will ask the parameter you can specify the node name
4. Go to build with parameter and passing the node parameter then enter build