Trying to update my plugin for Bitbucket server. Eariler, my plugin servlet loaded itself to the correct location, to the repository context items when I clicked on the generated link:
<web-item key="repository-settings-slack-settings" weight="30" section="bitbucket.repository.settings.panel/repository-settings-addons-section">
<label key="bitbucket.server.web.repository.settings.tab.slack.settings">Slack settings</label>
<tooltip key="bitbucket.web.repository.settings.tab.slack.settings.tooltip">Configure whether you want slack notifications</tooltip>
<link>${navBuilder.pluginServlets().path('slack-settings', 'projects', $project.key, 'repos', $repository.slug).buildRelNoContext()}</link>
</web-item>
Now my servlet loads incorrectly with Bitbucket server, eg the servlet loads as a top level thing, and not into the settings location. Could anybody tell me what am I doing wrong?
See the expected behaviour (with old plugin and stash server):
https://dl.dropboxusercontent.com/u/1962283/plugin-servlet_stash.png
See the incorrect behaviour (with Bitbucket server)
https://dl.dropboxusercontent.com/u/1962283/plugin-servlet_bitbucket-server.png
thanks for your inputs!
Community moderators have prevented the ability to post new answers.
Hi,
Could you please make sure that you use the following decorator in your repository settings SOY template:
<meta name="decorator" content="bitbucket.repository.settings">
Hope this helps.
Cheers,
Michael
Oh my god, this was it, thank you very much! I had '<meta name="decorator" content="bitbucketserver.repository.settings">' instead of <meta name="decorator" content="bitbucket.repository.settings"> there by mistake.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By the way, this was pretty hard (basically impossible) for me to debug, is there any place in some atlassian documentation that clearly points out this with all possible content settings? I googled like mad, but not found anything. Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome! Yes, things like these are hard to debug. You can find the possible decorators here: https://developer.atlassian.com/bitbucket/server/docs/latest/reference/plugin-decorators.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for answering, Michael! I've also updated our howto for updating add-ons: https://confluence.atlassian.com/display/BitbucketServer/How+to+update+your+add-on
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.