About PluginsArtifactory Pro allows you to easily extend Artifactory's behavior with your own plugins written in Groovy. User plugins are about running user's code in Artifactory. Plugins allow you to do things like:
During development you can change plugin source files and have your plugins redeployed on the fly. You can even debug the plugin code using your favorite IDE. Deploying PluginsSimple place your plugin files under Auto ReloadBy default plugins are not reloaded after Artifactory has started up. You can tell Artifactory to automatically detect plugin changes on disk or new plugin files and automatically reload them in runtime (plugin removals are not detected). To do this, set the number of seconds to check for plugin updates to a number greater than 0, by changing the following property in
Writing PluginsArtifactory plugins are written as Groovy scripts in regular files and have a simple DSL to wrap users code in closures inside well-known extension points. A scripts have a couple of helper objects that are globally bound (see the plugin script template). The Artifactory Public API (PAPI)Scripts have access to the full classpath of Artifactory, however, the only API supported for plugins is the Please see the plugin code template and sample plugin below for more details.
Globally Bound Variables
Plugin Execution PointsThe following table summarizes the available execution points. For more details about specific plugin look follow the section links.
Plugin Template SourceGeneral Info
DownloadA section for handling and manipulating download events |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
User Plugins
Skip to end of metadata
Go to start of metadata
Labels: