Groovy script to detect which version of which application is installed for each slave.

The script MUST return a JSON string of the form:

[
  {
    "version": "Application Version",
    "home": "Home Directory of This Version"
  },
  ・・・
]

You can use the 'runExternalCommand()' method to execute external commands and get output.
And you can use the 'platform' variable to determine the platform in the script. ("windows", "linux", or "osx" will be stored)

Please refer to the example below.