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.

<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}

(info)  {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

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport