Navigation Menu

Skip to content

jenkinsci/app-detector-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application Detector Plugin

This plugin provides the following functions.

  • Detects an application and its versions installed in slaves, by using a groovy script.
  • Enables you to execute builds by specifying the detected application and its version.

Usage

First, You need to register the detection setting on the Jenkins global setting page, as follows.

And restart Jenkins, or reconnect slaves to reflect the detection setting.

NOTE: Detection setting is not reflected until disconnecting the node and connecting it again.

Then, you can specfiy some applications and versions at job setting.

Or, Select it runtime by using "Choice Application Version" build parameter.

About Detection Script

  • Script MUST return a JSON string of the form:
[
    {
      "version": "Application Version",
      "home": "Home Directory of This Version"
    },
]
  • You can use the '[cmd, arg1, arg2 ...].execute().text' 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)

Sample

Here is some sample scripts.

Licence

MIT

Author

justice3120