Last updated Oct 3, 2024

Plugin resources

If your plugin requires a lot of resources, you may wish to expose a directory of files as resources, rather than writing definitions for each individual file.

1
2
<resource type="download" name="icons/" location="templates/extra/autofavourite/icons/"/>
  • The name and location must both have trailing slashes
  • Subdirectories are also exposed, so in the example above, icons/small/icn_auto_fav.gif will be mapped to the resourcetemplates/extra/autofavourite/icons/small/icn_auto_fav.gif

After defining the downloadable resources directory, you can refer to it by URL. The URL for a downloadable resource is as follows:
{server root}/download/resources/

{plugin key}:{module key}/{resource name}

NOTE:  {module key} is optional.

For example:
http://bamboo.example.com/download/resources/com.atlassian.bamboo.plugin.autofavourite:autofavourite-resources/icn_auto_fav.gif

For details:
Downloadable Plugin Resources

Rate this page: