diff --git a/dev-docs/source/JenkinsConfiguration.rst b/dev-docs/source/JenkinsConfiguration.rst index 3d086895bee67ed1c49e818f7ffb6c378c0f3687..c578d67f7b32b0c60a3e9723de292bc927444b92 100644 --- a/dev-docs/source/JenkinsConfiguration.rst +++ b/dev-docs/source/JenkinsConfiguration.rst @@ -414,8 +414,8 @@ Print All Loggers println "${it}"; } -Run a Process -------------- +Run a Process On a Single Node +------------------------------ .. code-block:: groovy @@ -426,6 +426,22 @@ Run a Process Process p = "cmd /c Taskkill /F /IM MantidPlot.exe".execute() println "${p.text}" +Run a Process Across All Nodes +------------------------------ + +.. code-block:: groovy + + import hudson.util.RemotingDiagnostics; + + for (slave in hudson.model.Hudson.instance.slaves) { + println slave.name; + // is it connected? + if(slave.getChannel()) { + println RemotingDiagnostics.executeGroovy("println \"ls\".execute().text", slave.getChannel()); + } + } + + Update default values for job parameters ----------------------------------------