Issue
- We would like to execute a custom script on a worker/controller.
- We would like to execute a custom script on all worker/controller.
Environment
- CloudBees Jenkins Enterprise - AWS/OpenStack/Anywhere
Resolution
To run a script in a worker/controller or in all at the same time you can use dna run LOCAL_FULL_PATH_TO_SCRIPT worker-1
to run the script in the worker-1 or dna run LOCAL_FULL_PATH_TO_SCRIPT worker-*
to run it on all workers. you can copy the script in .dna/scripts.
0 Comments