Last active
May 9, 2023 12:21
-
-
Save ctran/8f82adedaa23ea924c52 to your computer and use it in GitHub Desktop.
Revisions
-
ctran revised this gist
Oct 14, 2015 . No changes.There are no files selected for viewing
-
ctran revised this gist
Oct 14, 2015 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,12 @@ import hudson.remoting.Launcher import hudson.slaves.SlaveComputer def expectedVersion = Launcher.VERSION for (computer in Jenkins.instance.getComputers()) { if (! (computer instanceof SlaveComputer)) continue if (!computer.getChannel()) continue def version = computer.getSlaveVersion() if (!expectedVersion.equals(version)) { println "${computer.name} - expected ${expectedVersion} but got ${version}" } } -
ctran created this gist
Oct 14, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import jenkins.model.* import hudson.remoting.Launcher import hudson.slaves.SlaveComputer def expectedVersion = Launcher.VERSION for (computer in Jenkins.instance.getComputers()) { if (! (computer instanceof SlaveComputer)) continue if (!computer.getChannel()) continue def version = computer.getSlaveVersion() if (!expectedVersion.equals(version)) { println "${computer.name} - expected ${expectedVersion} but got ${version}" } }