Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
90a6b027
Unverified
Commit
90a6b027
authored
6 years ago
by
Gigg, Martyn Anthony
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Groovy script to run a proces on all Jenkins nodes
parent
3ba86000
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev-docs/source/JenkinsConfiguration.rst
+18
-2
18 additions, 2 deletions
dev-docs/source/JenkinsConfiguration.rst
with
18 additions
and
2 deletions
dev-docs/source/JenkinsConfiguration.rst
+
18
−
2
View file @
90a6b027
...
...
@@ -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
----------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment