We are trying to automate the construction of our Confluence server via Chef or Puppet. We are able to install our Jira plugins by copying them to a directory under jira-home. Is there a comparable directory for confluence type 2 plugins?
Looks like there is a way to load via the DB.
The plugindata table hold plugin metadata and the plugin binary
The bandana table holds the plugin state (enabled/disabled)
See also:
https://confluence.atlassian.com/display/CONFKB/How+to+manually+remove+malfunctioning+add-ons
Try <confluence_install>/confluence/WEB-INF/lib. That's my understanding from:
https://confluence.atlassian.com/display/DOC/Important+Directories+and+Files
I believe that's for type I plugins... but i'll give it a shot...
nope, didn't work. Any other idears?
Did you get anywhere with this?
I raised a SR with Atlassian and got this response:
Tom, Unfortunately it is not possible to install plugins via the install directory. You can upload add-onsdirectly in the interface for via Marketplace. Anything outside of those methods are unfortunately not supported by Atlassian. Regards,Shannon
Tom,
Unfortunately it is not possible to install plugins via the install directory. You can upload add-onsdirectly in the interface for via Marketplace.
Anything outside of those methods are unfortunately not supported by Atlassian.
Regards,Shannon
The workaround solution is to copy the jar or obr file to the folder "<Confluence instance>/confluence/WEB-INF/atlassian-bundled-plugins" that once Confluence restarted, it will load as a system plugin in the manage add ons list.
However, if you want to uninstall it, it is not possible to uninstall via UI, you need to :
# Remove the file from the "atlassian-bundled-plugins" folder# Shutdown Confluence and clear the plugin cache before restart.
so, you mean that an Internet connection is mandatory ... which is not always the case !!!
@ivanrossierYou can always update an App using the jar file from local disk if you do not have an internet connection. If you go to manage apps -> Upload app -> Select the jar file.
There is also the following way to update an App via the database for CI testing purposes / non-production environments: For example: if you have a new version of the App named confluence-create-content-plugin.jar -> Stop Confluence and then use this SQL on the PostgreSQL database:
UPDATE plugindata SET data=pg_read_binary_file('confluence-create-content-plugin.jar') WHERE pluginkey = 'com.atlassian.confluence.plugins.confluence-create-content-plugin';
Then start Confluence again. Do mind that the .jar file (confluence-create-content-plugin.jar in this example) should be in the data directory of the PostgreSQL environment in order to access it by the function pg_read_binary_file(). You can find out where your data directory is on the PostgreSQL database:
SHOW data_directory;
It looks like you're new here. Sign in or register to get started.