Skip to content
No description, website, or topics provided.
Java Groovy HTML CSS
Branch: master
Clone or download
This branch is 28 commits ahead, 2 commits behind justice3120:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
readme
src
.gitignore
README.md
pom.xml
release.properties

README.md

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

You can’t perform that action at this time.